Description Usage Arguments Value Note Author(s) Examples
Returns a table containing only taxa from a given phylogenetic group
1 | grab_group(group, level, table, taxonomy)
|
group |
The phylogenetic classification of interest (can be a regular expression) |
level |
The phylogenetic level of the group of interest (must be a column name in the taxonomy file) |
table |
A table containing the relative abundances of each OTU in the form produced by clean_shared() |
taxonomy |
A taxonomy dataset in the form produced by expand_taxa() |
Returns a table with all taxa of a given taxonomic assignment
This function must be run on the OTU level table. However, the output of this function can be run through combine_otus() to create a higher level table of results. Sometimes closely related groups were classified better in the Greengenes vs the freshwater database during classification of the NTL-Microbial Observatory dataset. In this case, it is necessary to search for the names generated by both datasets to get all closely related OTUs. For example, Methylophilaceae in Greengenes are named betIV in the freshwater database.
Alexandra Linz <amlinz16@gmail.com>
1 2 3 4 5 6 7 8 9 |
data(otu_table)
data(taxonomy)
acI <- grab_group("acI", "Clade", otu_table, taxonomy)
verruco <- grab_group("Verrucomicrobia", "Phylum", otu_table, taxonomy)
# Example where two search terms are needed due to classification with two databases
methylophilaceae <- grab_group("Methylophilaceae|betIV", "Clade", otu_table, taxonomy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.