View source: R/da_limma_voom.R
run_limma_voom | R Documentation |
Differential expression analysis based on limma-voom.
run_limma_voom(
ps,
group,
confounders = character(0),
contrast = NULL,
taxa_rank = "all",
transform = c("identity", "log10", "log10p", "SquareRoot", "CubicRoot", "logit"),
norm = "none",
norm_para = list(),
voom_span = 0.5,
p_adjust = c("none", "fdr", "bonferroni", "holm", "hochberg", "hommel", "BH", "BY"),
pvalue_cutoff = 0.05,
...
)
ps |
ps a |
group |
character, the variable to set the group, must be one of the var of the sample metadata. |
confounders |
character vector, the confounding variables to be adjusted.
default |
contrast |
this parameter only used for two groups comparison while there are multiple groups. For more please see the following details. |
taxa_rank |
character to specify taxonomic rank to perform
differential analysis on. Should be one of
|
transform |
character, the methods used to transform the microbial
abundance. See
|
norm |
the methods used to normalize the microbial abundance data. See
|
norm_para |
arguments passed to specific normalization methods. Most users will not need to pass any additional arguments here. |
voom_span |
width of the smoothing window used for the lowess
mean-variance trend for |
p_adjust |
method for multiple test correction, default |
pvalue_cutoff |
cutoff of p value, default 0.05. |
... |
extra arguments passed to |
contrast
must be a two length character or NULL
(default). It is only
required to set manually for two groups comparison when there are multiple
groups. The order determines the direction of comparison, the first element
is used to specify the reference group (control). This means that, the first
element is the denominator for the fold change, and the second element is
used as baseline (numerator for fold change). Otherwise, users do required
to concern this parameter (set as default NULL
), and if there are
two groups, the first level of groups will set as the reference group; if
there are multiple groups, it will perform an ANOVA-like testing to find
markers which difference in any of the groups.
a microbiomeMarker
object.
Law, C. W., Chen, Y., Shi, W., & Smyth, G. K. (2014). voom: Precision weights unlock linear model analysis tools for RNA-seq read counts. Genome biology, 15(2), 1-17.
data(enterotypes_arumugam)
mm <- run_limma_voom(
enterotypes_arumugam,
"Enterotype",
contrast = c("Enterotype 3", "Enterotype 2"),
pvalue_cutoff = 0.01,
p_adjust = "none"
)
mm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.