Skip to content

Commit

Permalink
Using multiplicative correction factors for KR
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimwolff authored Apr 4, 2019
1 parent f37a721 commit 5e45bf6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hicexplorer/hicCorrectMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5e45bf6

Please sign in to comment.