You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you for this amazing implementation.
I have a rather conceptual question regarding the code. From using this tool and from what I found how it is used in the HiCExplorer hicCorrectMatrix I found that there are two main results that can be returned:
a norm vector and a rescaled norm vector with kr.get_normalisation_vector(True/False)
a normalized matrix with rescaled and nonrescaled norm vector with kr.get_normalised_matrix(True/False)
My question now is: Why the rescaling?
I get that the nonrescaled results balances the matrix to rowsum/colsum of 1, but is it better to use the rescaled result instead of the unrescaled?
Also a line in the hicCorrectMatrix script is a little bit misleading in this sense:
732# set it to False since the vector is already normalised733# with the previous True734# correction_factors = np.true_divide(1, kr.get_normalisation_vector(False).todense())735correction_factors=kr.get_normalisation_vector(False).todense()
However, there is no previous True. I mean for the h5 format it does not matter since you anyway store the normalised rescaled matrix but if you use it in cooler this will get you the nonrescaled vector or am I wrong here?
Thank you for the answer in advance,
Best regards,
Daniel
The text was updated successfully, but these errors were encountered:
Thanks for your interest in this tool. In theory using the re-scaled one or the original matrix generated directly by kr algorithm (with row and column close to 1) should not change your analysis, however our motivation was scaling up the values to avoid the complication caused very small values in the downstream analysis when using hicexplorer. I hope it helps, let me know if you any further questions.
Hi,
First of all thank you for this amazing implementation.
I have a rather conceptual question regarding the code. From using this tool and from what I found how it is used in the HiCExplorer
hicCorrectMatrix
I found that there are two main results that can be returned:My question now is: Why the rescaling?
I get that the nonrescaled results balances the matrix to rowsum/colsum of 1, but is it better to use the rescaled result instead of the unrescaled?
Also a line in the
hicCorrectMatrix
script is a little bit misleading in this sense:However, there is no previous
True
. I mean for the h5 format it does not matter since you anyway store the normalised rescaled matrix but if you use it in cooler this will get you the nonrescaled vector or am I wrong here?Thank you for the answer in advance,
Best regards,
Daniel
The text was updated successfully, but these errors were encountered: