cBSData-method | R Documentation |
Creates a BSData-class
object
cBSData( methReads, totalReads, rowRanges, colData = DataFrame(row.names = colnames(methReads)), metadata = list(), ... ) ## S4 method for signature 'matrix,matrix,GRanges' cBSData( methReads, totalReads, rowRanges, colData = DataFrame(row.names = colnames(methReads)), metadata = list(), ... )
methReads |
The matrix |
totalReads |
The matrix |
rowRanges |
A |
colData |
Object of class |
metadata |
An optional |
... |
other possible parameters |
The rows of a BSData
object represent ranges (in genomic
coordinates) of interest. The ranges of interest are described by a
GRanges
or a GRangesList
object,
accessible using the rowRanges
function.
The GRanges
and GRangesList
classes
contains sequence (e.g., chromosome) name, genomic coordinates, and strand
information. Each range can be annotated with additional data; this data
might be used to describe the range or to
summarize results (e.g., statistics of differential abundance) relevant to
the range. Rows may or may not have row names; they often will not.
A BSData-class
object
Farhad Shokoohi <shokoohi@icloud.com>
nr <- 150; nc <- 8 metht <- matrix(as.integer(runif(nr * nc, 0, 100)), nr) methc <- matrix(rbinom(n=nr*nc,c(metht),prob = runif(nr*nc)),nr,nc) r1 <- GRanges(rep('chr1', nr), IRanges(1:nr, width=1), strand='*') names(r1) <- 1:nr cd1 <- DataFrame(Group=rep(c('G1','G2'),each=nc/2),row.names=LETTERS[1:nc]) OBJ1 <- cBSData(rowRanges=r1,methReads=methc,totalReads=metht,colData=cd1) OBJ1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.