Description Usage Arguments Value Author(s) Examples
Returns totalReads
stored in BSDMC-class
Assigns totalReads
to BSDMC-class
1 2 3 4 5 6 7 8 9 | totalReads(object)
totalReads(object) <- value
## S4 method for signature 'BSDMC'
totalReads(object)
## S4 replacement method for signature 'BSDMC,matrix'
totalReads(object) <- value
|
object |
A |
value |
An integer matrix |
A matrix
A BSDMC-class
object
Farhad Shokoohi <shokoohi@icloud.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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)
methl <- methc / metht
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 <- cBSDMC(
rowRanges = r1, methReads = methc, totalReads = metht,
methLevels = methl, colData = cd1
)
totalReads(OBJ1)
totalReads(OBJ1) <- metht
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.