fit {OUTRIDER} | R Documentation |
Fit a negative binomial (NB) distribution to the counts per gene over all samples using, if available, the precomputed control factors. If no normalization factors are provided only the sizeFactors are used.
fit(object, ...) ## S4 method for signature 'OutriderDataSet' fit(object, BPPARAM = bpparam())
object |
An OutriderDataSet |
... |
additional arguments, currently not used. |
BPPARAM |
by default bpparam() |
An OutriderDataSet object with the fitted model. Accessible through:
mcols(ods)[,c('mu', 'theta')]
.
ods <- makeExampleOutriderDataSet() ods <- estimateSizeFactors(ods) ods <- fit(ods) mcols(ods)[1:10,c('mu', 'theta')]