grab_group: Subset OTU table by taxonomic assignment

Description Usage Arguments Value Note Author(s) Examples

Description

Returns a table containing only taxa from a given phylogenetic group

Usage

1

Arguments

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()

Value

Returns a table with all taxa of a given taxonomic assignment

Note

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.

Author(s)

Alexandra Linz <amlinz16@gmail.com>

Examples

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)

OTUtable documentation built on May 1, 2019, 10:51 p.m.