KRnorm {HiCcompare} | R Documentation |
Performs KR (Knight-Ruiz) normalization on a Hi-C matrix
KRnorm(A)
A |
the matrix to be normalized - any columns/rows of 0's will be removed before being normalized. |
Performs KR normalization. The function is a translation of the 'Matlab' code provided in the 2012 manuscript. Knight PA, Ruiz D. A fast algorithm for matrix balancing. IMA Journal of Numerical Analysis. Oxford University Press; 2012; drs019.
A KR normalized matrix
m <- matrix(rpois(100, 5), 10, 10) KRnorm(m)