Description Usage Arguments Value Examples
Run negative binomial Wald test using DESeq2 on all taxa in a phylseq object.
If block
is specified, then it is used as an additional factor.
If block
is NULL, then standard test is used.
1 2 | test_differential_abundance_DESeq2(physeq, group, compare = NULL,
block = NULL, cooksCutoff = TRUE)
|
physeq |
Phyloseq object. |
group |
Name of column in sample metadata to perform group-wise comparisons on. |
compare |
List of 2 groups to be compared, which are present in the |
block |
Name of column in sample metadata to control for the group-wise comparisons. |
cooksCutoff |
Cook's cutoff passed on to |
Returns a list containing the following:
table
: data frame containing the negative binomial Wald test results from DESeq2,
with the following columns:
Taxon, teststat, pvalue, padj, significance, direction, Mean_grp1, Mean_grp2, baseMean, log2FC, tax_table(phyloseq)
.
dds
: raw analysis results from DESeq2.
physeq_adj
: adjusted counts from DESeq2.
test_name
: Name of test used - in this case "Negative binomial Wald test"
.
block
: Name of variable used as blocking factor.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# If there are only 2 levels for \code{Diet}
res <- test_differential_abundance_DESeq2(physeq, group = "Diet", block = "Gender")
# If there are multiple levels for \code{Diet}
res <- test_differential_abundance_DESeq2(physeq, group = "Diet", compare=c("Control", "High_Fat"), block = "Gender")
res <- test_differential_abundance_DESeq2(physeq, group = "Diet", compare=c("Control", "High_Fibre"), block = "Gender")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.