nonparDA | R Documentation |
Testing for differential abundance using non-parametric tests.
nonparDA(ps.obj, group = NULL, contrast = NULL, p.adjust.method = "BH", verbose = TRUE)
ps.obj |
A phyloseq object. |
group |
Name of one column in sample_table(ps.obj) used to group the samples. |
contrast |
Optional specification of which category levels to use, see below. |
p.adjust.method |
The method used for multiple testing correction, see |
verbose |
Logical to turn on/off output during computing. |
Performs a Kruskal-Wallis non-parametric test for differential abundance
for each OTU in a phyloseq
object.
The group
must be the name of a column in sample_table(ps.obj)
that splits the samples into groups.
If no contrast
is specified, a Kruskal-Wallis test is performed, using all category levels,
i.e. it tests if the abundance for at least one level deviates from at least one other level.
If contrast
contains one text it must one of the levels in group
, and then
the test is contrasting this level against all the others (A versus not A). If contrast
contains
two texts, both must be levels in group
, and the test is contrasting the samples from
these two levels only (A versus B).
A table with the columns
OTU
statistic The Kruskal-Wallis test statistic
p.value Raw p-value.
p.adj Adjusted p-value due to multiple testing
Lars Snipen.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.