subset_matrix: Extract the contacts associated to a region form a acontact...

Description Usage Arguments Value Examples

View source: R/subset_matrix.R

Description

This function takes a sparse matrix of contacts and a genomic region and extract a sub-matrix with the desired region.

Usage

1
subset_matrix(mat, region)

Arguments

mat

A dgTMatrix of contacts with genomic bins as row.names.

region

A genomic region ("chr" or "chr:start-end").

Value

A dgTMatrix corresponding to the desired region.

Examples

1
plot(0)

qenvio/dryhic documentation built on Nov. 5, 2018, 9:43 p.m.