Description Usage Arguments Value
View source: R/filter_taxa_functions.r
This subsetting function allows to create multiple combinations of subsets from a list of phyloseq objects. The lowest taxonomic level (usually ASV or OTU) is always included, further taxonomic levels can be specified as described below. The call to 'phyloseq::tax_glom' can be slow, therefore package 'speedyseq' is used, if installed.
1 2 3 4 5 6 7 | create_community_table_subsets(
subset_list,
thresholds,
tax_ranks = NULL,
taxa_prefix,
...
)
|
subset_list |
a list of phyloseq objects |
thresholds |
an integer vector specifying the input to 'filter_taxa(sum(x > threshold) >= num_samples)', will be formatted with with digits after . later string splits |
tax_ranks |
specifying the tax ranks to agglomerate in the form of 'setNames(c("To_genus", To_family), c("Genus", "Family"))'. Here, "To_genus" is the corresponding taxonomic level in tax_table() and "Genus" is appended to the name the agglomerated data.frame in the results list for later distinction. Check taxa rank using 'colnames(tax_table(TNT_communities))' |
taxa_prefix |
The leading name of your taxa, e.g. 'ASV' or 'OTU', must not contain an underscore or white space |
... |
further argument passed on to filter_subsets() |
A list of subsetted community tables for each combination of phyloseq_subset, thresholds and tax_ranks (+ ASV/OTU)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.