remove_unmappable: Removes unmappable regions (all zeros columns and rows) from...

Description Usage Arguments Value Examples

Description

Removes unmappable regions (all zeros columns and rows) from dense matrix.

Usage

1
remove_unmappable(dense.mtx)

Arguments

dense.mtx

numeric matrix (contact map) in dense format

Value

list containing 3 elements: indices of removed rows, indices of removed columns and matrix without unmappable regions

Examples

1
2
3
4
5
6
7
8
# construct matrix
mtx <- matrix(1:32, ncol = 4)
mtx[c(5,7,8),] <- 0
mtx[,c(2,4)] <- 0
l <- remove_unmappable(mtx)
print(l[["indices.rows"]])
print(l[["indices.cols"]])
print(l[["matrix"]])

rz6/DIADEM documentation built on Dec. 31, 2019, 3:51 a.m.