unique_taxa: Find unique taxa between treatments of a phyloseq object....

View source: R/unique_taxa.R

unique_taxaR Documentation

Find unique taxa between treatments of a phyloseq object. Function from the phylosmith-package.

Description

Inputs a phyloseq-class object and finds which taxa are taxa that are unique to a specific subset of the data.

Usage

unique_taxa(phyloseq_obj, treatment, subset = NULL)

Arguments

phyloseq_obj

A phyloseq-class object. It must contain sample_data()) with information about each sample, and it must contain tax_table()) with information about each taxa/gene.

treatment

Column name as a string or numeric in the sample_data. This can be a vector of multiple columns and they will be combined into a new column.

subset

A factor within the treatment. This will remove any samples that to not contain this factor. This can be a vector of multiple factors to subset on.

Value

list

See Also

common_taxa

Examples

unique_taxa(soil_column, c('Matrix', 'Treatment'))

schuyler-smith/phyloschuyler documentation built on Aug. 16, 2024, 5:36 a.m.