getChromosome: Grab a specific chromosome

Description Usage Arguments Value Examples

Description

getChromosome takes a sparseHiCdatum object and returns a list of sparse Hi-C matrices. If a list is returned, then the names are the resolutions. If the length of chr > 1 (multiple chromosomes), then a list of lists will be returned if a.list is TRUE

Usage

1
2
3
4
getChromosome(obj, chr, a.list = TRUE)

## S4 method for signature 'sparseHiCdatum,character'
getChromosome(obj, chr, a.list = TRUE)

Arguments

obj

A sparseHiCdatum object

chr

Chromosome(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
chr <- "chr21"
rds<-paste(system.file('rds',package='sparseHiC'),'hESCdatum1.rds',sep='/')
hESCdatum1 <- readRDS(rds)
r <- getChromosome(hESCdatum1,chr = chr, a.list = FALSE) 

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