Description Usage Arguments Value Examples
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
1 2 3 4 | getChromosome(obj, chr, a.list = TRUE)
## S4 method for signature 'sparseHiCdatum,character'
getChromosome(obj, chr, a.list = TRUE)
|
obj |
A |
chr |
Chromosome(s) desired |
a.list |
= TRUE Return a list of matrices? If FALSE,
return another |
Returns object subsetted by resolution
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.