taxa_proportions: Compute proportions for taxa.

View source: R/taxa_proportions.R

taxa_proportionsR Documentation

Compute proportions for taxa.

Description

Computes the proportion of a taxa classification. Function from the phylosmith-package.

Usage

taxa_proportions(phyloseq_obj, classification, treatment = NULL)

Arguments

phyloseq_obj

A phyloseq-class object. it must contain tax_table()) with information about each taxa/gene.

classification

Column name as a string or numeric in the tax_table for the proportions to be reported on.

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.

Value

data.table

Examples

taxa_proportions(soil_column, 'Phylum', treatment = NULL)
taxa_proportions(soil_column, 'Phylum', treatment = 'Sample')
taxa_proportions(soil_column, 'Phylum', treatment = c('Matrix', 'Treatment'))

schuyler-smith/phylosmith documentation built on Aug. 17, 2024, 10:19 a.m.