inmoose.edgepy.estimateGLMCommonDisp
- inmoose.edgepy.estimateGLMCommonDisp(y, design=None, offset=None, method='CoxReid', subset=10000, AveLogCPM=None, verbose=False, weights=None)
Estimate a common negative binomial dispersion parameter for a DGE dataset with a general experimental design.
This function calls
dispCoxReid(),dispPearson()ordispDeviance()depending on themethodspecified. SeedispCoxReid()for details of the three methods and a discussion of their relative performance.See also
estimateGLMTrendedDispfor trended dipsersions
estimateGLMTagwiseDispfor genewise dispersions in the context of a GLM
estimateCommonDispfor the common dispersion
estimateTagwiseDispfor genewise dispersion in the context of a multiple group experiment (one-way layout)
- Parameters:
y (matrix) – matrix of counts, as in
glmFit()design (matrix, optional) – design matrix, as in
glmFit()offset (array_like, optional) – vector or matrix of offsets for the log-linear models, as in
glmFit()method (str) – method for estimating the dispersion. Possible values are “CoxReid”, “Pearson” or “deviance”. Defaults to “CoxReid”.
subset (int) – maximum number of rows of
yto use in the calculation. Rows used are chosen evenly spaced byAveLogCPMusingsystematicSubset().AveLogCPM (array_like) – vector of log2 average counts per million for each gene
weights (matrix, optional) – observation weights
- Returns:
estimated common dispersion
- Return type:
float