getResolution: Grab a sample's specific resolution

Description Usage Arguments Value Examples

Description

getResolution takes a sparseHiCdatum object and returns a list of sparse Hi-C matrices. If a list is returned, then the names are the chromosomes.

Usage

1
2
3
4
getResolution(obj, res, a.list = TRUE)

## S4 method for signature 'sparseHiCdatum'
getResolution(obj, res, a.list = TRUE)

Arguments

obj

A sparseHiCdatum object

res

Resolution(s) desired

a.list

= TRUE Return a list of matrices? If FALSE, return another sparseHiCdatum object

Value

Returns object subsetted by resolution

Examples

1
2
3
4
resolutions <- "1000000"
rds<-paste(system.file('rds',package='sparseHiC'),'hESCdatum1.rds',sep='/')
hESCdatum1 <- readRDS(rds)
r <- getResolution(hESCdatum1, resolutions, a.list = FALSE) #trivial

aryeelab/sparseHiC documentation built on May 12, 2019, 3:43 a.m.