From 5e45bf6420c888dc3f2c48857e2f8d304adc93b1 Mon Sep 17 00:00:00 2001 From: Joachim Wolff Date: Thu, 4 Apr 2019 18:43:40 +0200 Subject: [PATCH] Using multiplicative correction factors for KR --- hicexplorer/hicCorrectMatrix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hicexplorer/hicCorrectMatrix.py b/hicexplorer/hicCorrectMatrix.py index d99b686e..c6263e18 100644 --- a/hicexplorer/hicCorrectMatrix.py +++ b/hicexplorer/hicCorrectMatrix.py @@ -674,8 +674,7 @@ def main(args=None): kr = kr_balancing(chr_submatrix.astype(float)) kr.computeKR() corrected_matrix[chr_range[0]:chr_range[1], chr_range[0]:chr_range[1]] = kr.get_normalised_matrix(True) - correction_factors.append(np.true_divide(1, - kr.get_normalisation_vector(False).todense())) + correction_factors.append(kr.get_normalisation_vector(False).todense()) correction_factors = np.concatenate(correction_factors)