
Wrapper function for parameters for the limma-voom workflow
params_limma_voom.RdParameters for the limma linear model chain, implemented in Rust
via the edge-rs crate and gated against limma 3.66.0. Defaults are limma's
own, except for filter: inside BulkDge() the genes were already
filtered by qc_bulk_dge(). route = "voom" is voomLmFit():
precision weights from the mean-variance trend, then weighted least squares.
route = "trend" is limma-trend: log-CPM straight into lmFit(), with the
trend absorbed by eBayes(trend = TRUE). The empirical Bayes trend follows
the route.
Arguments
- route
String. Whether to run the voom or the limma-trend route. One of
c("voom", "trend"). Defaults to"voom".- norm_method
String. Library size normalisation. One of
c("TMM", "TMMwsp", "RLE", "upperquartile", "none"). Defaults to"TMM".- filter
Boolean. Run
filterByExpr()before fitting. Defaults toFALSE.- min_mean
Numeric. Drop genes whose mean count across samples is below this. Applied on top of
filter. Defaults to0.0.- robust
Boolean. Robust empirical Bayes,
eBayes(robust = TRUE). Defaults toFALSE.- prior_count
Numeric or
NULL. Count added before the log.NULLtakes the route's own default,0.5for voom and2for trend. Defaults toNULL.- adaptive_span
Boolean. Derive the lowess span from the number of genes, as limma does since 3.56. Only used by voom. Defaults to
TRUE.- span
Numeric. Lowess span for the voom trend, only read if
adaptive_span = FALSE. Defaults to0.5.- proportion
Numeric. Assumed proportion of differentially expressed genes, only used for the B-statistic. Defaults to
0.01.
Value
A named list with the following elements:
route - String. Whether to run the voom or the limma-trend route. One of
c("voom", "trend"). Defaults to"voom".norm_method - String. Library size normalisation. One of
c("TMM", "TMMwsp", "RLE", "upperquartile", "none"). Defaults to"TMM".filter - Boolean. Run
filterByExpr()before fitting. Defaults toFALSE.min_mean - Numeric. Drop genes whose mean count across samples is below this. Applied on top of
filter. Defaults to0.0.robust - Boolean. Robust empirical Bayes,
eBayes(robust = TRUE). Defaults toFALSE.prior_count - Numeric or
NULL. Count added before the log.NULLtakes the route's own default,0.5for voom and2for trend. Defaults toNULL.adaptive_span - Boolean. Derive the lowess span from the number of genes, as limma does since 3.56. Only used by voom. Defaults to
TRUE.span - Numeric. Lowess span for the voom trend, only read if
adaptive_span = FALSE. Defaults to0.5.proportion - Numeric. Assumed proportion of differentially expressed genes, only used for the B-statistic. Defaults to
0.01.