Description Usage Arguments Value Examples
Get model distribution parameters from an MpraObject of a given candidate enhancer
1 2 3 | getDistrParam_DNA(obj, enhancer, full = TRUE)
getDistrParam_RNA(obj, enhancer = NULL, full = TRUE)
|
obj |
MpraObject to extract from |
enhancer |
enhancer to extract |
full |
whether to extract from full model |
fit parameters (numeric, samples x parameters)
1 2 3 4 5 6 7 8 9 10 | data <- simulateMPRA(tr = rep(2,5), nbatch=2, nbc=15)
obj <- MpraObject(dnaCounts = data$obs.dna,
rnaCounts = data$obs.rna,
colAnnot = data$annot)
obj <- estimateDepthFactors(obj, lib.factor = "batch", which.lib = "both")
obj <- analyzeQuantification(obj, dnaDesign = ~ batch + barcode,
rnaDesign = ~1)
## get distributional parameters of the first enhancer:
dist.params.dna <- getDistrParam_DNA(obj, 1)
dist.params.rna <- getDistrParam_RNA(obj, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.