
Wrapper function for parameters for the edgeR quasi-likelihood workflow
params_edger_ql.RdParameters for the edgeR quasi-likelihood chain, implemented in
Rust via the edge-rs crate and gated against edgeR 4.8.2. Defaults are
edgeR's own. The legacy switch picks between two genuinely different
pipelines. The current route estimates its own dispersion from the most
abundant genes and skips estimateDisp(), which is where most of the runtime
went and is edgeR 4's own recommendation. The legacy route shrinks the raw
residual deviance, needs a dispersion handed to it, and is the only one where
the Poisson bound bites.
Usage
params_edger_ql(
norm_method = c("TMM", "TMMwsp", "RLE", "upperquartile", "none"),
filter = TRUE,
min_mean = 0,
robust = FALSE,
legacy = FALSE
)Arguments
- norm_method
String. Library size normalisation.
"none"leaves every factor at one, which is what Milo'slogMSamounts to. One ofc("TMM", "TMMwsp", "RLE", "upperquartile", "none"). Defaults to"TMM".- filter
Boolean. Run
filterByExpr()before fitting. Turn this off for anything that is not gene expression, e.g. Milo neighbourhood counts, where the heuristic means nothing. Defaults toTRUE.- min_mean
Numeric. Drop features whose mean count across samples is below this. Applied on top of
filter. Defaults to0.0.- robust
Boolean. Robust empirical Bayes squeezing, giving outlier features their own smaller prior degrees of freedom. Defaults to
FALSE.- legacy
Boolean. Take edgeR's pre-4.0 quasi-likelihood pipeline. Defaults to
FALSE.
Value
A named list with the following elements:
norm_method - String. Library size normalisation.
"none"leaves every factor at one, which is what Milo'slogMSamounts to. One ofc("TMM", "TMMwsp", "RLE", "upperquartile", "none"). Defaults to"TMM".filter - Boolean. Run
filterByExpr()before fitting. Turn this off for anything that is not gene expression, e.g. Milo neighbourhood counts, where the heuristic means nothing. Defaults toTRUE.min_mean - Numeric. Drop features whose mean count across samples is below this. Applied on top of
filter. Defaults to0.0.robust - Boolean. Robust empirical Bayes squeezing, giving outlier features their own smaller prior degrees of freedom. Defaults to
FALSE.legacy - Boolean. Take edgeR's pre-4.0 quasi-likelihood pipeline. Defaults to
FALSE.