Chromatin normalization¶
-
Filenorm
(M, **kwargs)[source]¶ Performs normalization on matrix M given a file. filename specifies the path to the file. The file should be one-column, and ideally has the same number of entries with the size of M (extra entries will be ignored). Say F is vector of the normalization factors, N is the normalized matrix, if expected is True,
N[i,j] = M[i,j]/F[i]/F[j]
. If expected is True,N[i,j] = M[i,j]/F[|i-j|]
.