| estimateDispersions {DEXSeq} | R Documentation |
This function estimates for each counting bin
of the ExonCountSet object a dispersion value. It stores
these values in fData(ecs)$dispBeforeSharing.
## S4 method for signature 'ExonCountSet'
estimateDispersions( object,
formula = ~ sample + exon + condition : exon,
minCount = 10, nCores = 1 )
object |
An ExonCountSet object. |
formula |
Formula used in the GLM to estimate the dispersion values. The terms in the formula must be design columns of the ExonCountSet object, the l.h.s. will be the counts for each exon. |
minCount |
Counting bins with less than |
nCores |
Number of cores to be used to estimate the dispersions.
The |
For the dispersion estimation, we use the Cox-Reid conditional maximum
likelihood method of McCarthy et al. (Nucl Acid Res., 2012, 40:4288), which they
devised for the edgeR package.
An object of class ExonCountSet with dispersion featureData(object)$dispersion_CR_est)
parameters filled).
if(suppressWarnings(require("pasilla", quietly=TRUE, character.only=TRUE))){
data("pasillaExons", package="pasilla")
pasillaExons <- estimateSizeFactors( pasillaExons )
pasillaExons <- estimateDispersions( pasillaExons )
head( fData(pasillaExons)$dispBeforeSharing )
}