run_deseq2 | R Documentation |
Differential expression analysis based on the Negative Binomial distribution using DESeq2.
run_deseq2(
ps,
group,
confounders = character(0),
contrast = NULL,
taxa_rank = "all",
norm = "RLE",
norm_para = list(),
transform = c("identity", "log10", "log10p", "SquareRoot", "CubicRoot", "logit"),
fitType = c("parametric", "local", "mean", "glmGamPoi"),
sfType = "poscounts",
betaPrior = FALSE,
modelMatrixType,
useT = FALSE,
minmu = ifelse(fitType == "glmGamPoi", 1e-06, 0.5),
p_adjust = c("none", "fdr", "bonferroni", "holm", "hochberg", "hommel", "BH", "BY"),
pvalue_cutoff = 0.05,
...
)
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
|
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. |
transform |
character, the methods used to transform the microbial
abundance. See
|
fitType , sfType , betaPrior , modelMatrixType , useT , minmu |
these seven
parameters are inherited form
For more details, see |
p_adjust |
method for multiple test correction, default |
pvalue_cutoff |
pvalue_cutoff numeric, p value cutoff, default 0.05. |
... |
extra parameters passed to |
Note: DESeq2 requires the input is raw counts (un-normalized counts), as
only the counts values allow assessing the measurement precision correctly.
For more details see the vignette of DESeq2 (vignette("DESeq2")
).
Thus, this function only supports "none", "rarefy", "RLE", "CSS", and "TMM" normalization methods. We strongly recommend using the "RLE" method (default normalization method in the DESeq2 package). The other normalization methods are used for expert users and comparisons among different normalization methods.
For two groups comparison, this function utilizes the Wald test (defined by
DESeq2::nbinomWaldTest()
) for hypothesis testing. A Wald test statistic
is computed along with a probability (p-value) that a test statistic at least
as extreme as the observed value were selected at random. contrasts
are
used to specify which two groups to compare. The order of the names
determines the direction of fold change that is reported.
Likelihood ratio test (LRT) is used to identify the genes that significantly changed across all the different levels for multiple groups comparisons. The LRT identified the significant features by comparing the full model to the reduced model. It is testing whether a feature removed in the reduced model explains a significant variation in the data.
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.
Love, Michael I., Wolfgang Huber, and Simon Anders. "Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2." Genome biology 15.12 (2014): 1-21.
DESeq2::results()
,DESeq2::DESeq()
data(enterotypes_arumugam)
ps <- phyloseq::subset_samples(
enterotypes_arumugam,
Enterotype %in% c("Enterotype 3", "Enterotype 2")) %>%
phyloseq::subset_taxa(Phylum %in% c("Firmicutes"))
run_deseq2(ps, group = "Enterotype")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.