Description Usage Arguments Value Examples
Manually set library depth correction factors
1 | setDepthFactors(obj, dnaDepth, rnaDepth)
|
obj |
the MpraObject |
dnaDepth |
library size factors for the DNA data, a numeric vector of length of the number of columns in the DNA data matrix |
rnaDepth |
library size factors for the RNA data, a numeric vector of length of the number of columns in the RNA data matrix |
the MpraObject with library depth factors
1 2 3 4 5 6 7 | data <- simulateMPRA(tr = rep(2,10), da=NULL, nbatch=2, nbc=20)
obj <- MpraObject(dnaCounts = data$obs.dna,
rnaCounts = data$obs.rna,
colAnnot = data$annot)
## set constant depth factors (no depth correction)
obj <- setDepthFactors(obj, dnaDepth = rep(1, NCOL(data$obs.dna)),
rnaDepth = rep(1, NCOL(data$obs.rna)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.