inmoose.edgepy.exactTestBetaApprox
- inmoose.edgepy.exactTestBetaApprox(y1, y2, dispersion=0.0)
Compute genewise p-values for differences in the means between two groups of negative-binomially distributed counts.
This function implements an asymptotic beta distribution approximation to the conditional count distribution.
See also
- Parameters:
y1 (matrix) – matrix of counts for the first of the two experimental groups to be tested for differences. Rows correspond to genes and columns to libraries. Libraries are assumed to be equal in size – e.g. adjusted pseudocounts from the output of
equalizeLibSizes().y2 (matrix) – matrix of counts for the second of the two experimental groups to be tested for differences. Rows correspond to genes and columns to libraries. Libraries are assumed to be equal in size – e.g. adjusted pseudocounts from the output of
equalizeLibSizes().dispersion (array_like of floats) – an array of dispersions, either of length one or of length equal to the number of genes.
- Returns:
array of genewise p-values, one for each row of
y1andy2- Return type:
ndarray