Description Usage Arguments Value Examples
View source: R/output_functions.R
Extracts posterior samples of individual parameters contained in the output slot of the readsData object returned by denoiSeq.
1 | getSamplesOf(RDobject, parm, steps, condition = "A")
|
RDobject |
A readsData object with a filled output slot. |
parm |
A parameter name string i.e p, f or gene name. |
steps |
An integer representing number of iterations used while calling denoiseq. |
condition |
A character (either A or B) representing the two experimental conditions. |
A vector of parameter samples, of length equal to steps.
1 2 3 4 5 6 7 8 | #pre-filtering to remove lowly expressed genes
ERCC <- ERCC[rowSums(ERCC)>0, ]
RD <- new('readsData', counts = ERCC)
steps <- 30
#30 steps are just for illustration here. Atleast 5000 steps are adequate.
BI <- denoiseq(RD, steps)
samples <- getSamplesOf(BI, 'ERCC-00051', steps)
plot(samples, type='l', main = 'History plot of ERCC-00051')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.