Description Usage Arguments Value Examples
getHiCMatrix
takes a sparseHiCdatum
object
and returns a single matrix. Thus, the length of chr
and res must be 1
1 2 3 4 5 6 7 | getHiCMatrix(obj, chr, res, sampleName)
## S4 method for signature 'sparseHiCdatum'
getHiCMatrix(obj, chr, res, sampleName)
## S4 method for signature 'sparseHiCdata'
getHiCMatrix(obj, chr, res, sampleName)
|
obj |
A |
chr |
Chromosome desired |
res |
Resolution desired |
sampleName |
When accessing a matrix with multiple samples in the object |
Returns a Hi-C Matrix
1 2 3 4 5 6 7 8 9 10 11 | chr <- "chr21"
res <- "1000000"
#Single sample
rds<-paste(system.file('rds',package='sparseHiC'),'hESCdatum1.rds',sep='/')
hESCdatum1 <- readRDS(rds)
r <- getHiCMatrix(hESCdatum1,chr = chr, res = res)
rdsA<-paste(system.file('rds',package='sparseHiC'),'hESCdata.rds',sep='/')
hESCdata <- readRDS(rdsA)
getHiCMatrix(hESCdata, chr = chr, res = res, sampleName = "hESC2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.