aggregate_abund | R Documentation |
Sums up all OTU read counts at the chosen taxonomic level. Used internally in many ampvis2 functions, but can also be used separately for custom purposes.
aggregate_abund(
abund,
tax,
tax_aggregate = "OTU",
tax_add = NULL,
calcSums = TRUE,
format = "long"
)
abund |
The OTU abundance table from an ampvis2 object ( |
tax |
The OTU abundance table from an ampvis2 object ( |
tax_aggregate |
Aggregate (sum) OTU's to a specific taxonomic level. (default: |
tax_add |
Add additional (higher) taxonomic levels to the taxonomy string. The OTU's will be aggregated to whichever level of the |
calcSums |
Whether to include the sums of read counts for each sample and taxonomic group. (default: |
format |
Output format, |
A data.table.
Kasper Skytte Andersen ksa@bio.aau.dk
data("AalborgWWTPs")
aggregated <- aggregate_abund(
AalborgWWTPs$abund,
AalborgWWTPs$tax,
tax_aggregate = "Genus",
tax_add = "Phylum",
format = "long",
calcSums = TRUE
)
aggregated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.