KRnorm {HiCcompare} | R Documentation

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

### Description

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

### Usage

    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

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

[Package HiCcompare version 1.12.0 Index]