KRnorm: Performs KR (Knight-Ruiz) normalization on a Hi-C matrix

Description Usage Arguments Details Value Examples

View source: R/KRnormalization.R

Description

Performs KR (Knight-Ruiz) normalization on a Hi-C matrix

Usage

1
KRnorm(A)

Arguments

A

the matrix to be normalized - any columns/rows of 0's will be removed before being normalized.

Details

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.

Value

A KR normalized matrix

Examples

1
2
m <- matrix(rpois(100, 5), 10, 10)
KRnorm(m)

HiCcompare documentation built on Nov. 8, 2020, 8:26 p.m.