normalizeMatrix: Normalize interaction matrix using normalization vector.

Description Usage Arguments Value

Description

Given the raw contact matrix M \in R^{nxn} and normalization vecotor v \in R^{n}, the normalized counts M^{*}_{i,j} = M_{i,j} / (v_{i} * v_{j}) or written as matrix product M^{*} = diag(v^{-1}) * M * diag(v^{-1}).

Usage

1

Arguments

M

a numeric Matrix with size n*n.

v

a numeric vector of size n.

Value

A Matrix with normalized counts.


ibn-salem/chromint documentation built on May 18, 2019, 1:29 a.m.