abundances: Abundance Matrix from Phyloseq

Description Usage Arguments Value Author(s) References Examples

View source: R/abundances.R

Description

Retrieves the taxon abundance table from phyloseq-class object and ensures it is systematically returned as taxa x samples matrix.

Usage

1
abundances(x, transform = "identity")

Arguments

x

phyloseq-class object

transform

Transformation to apply. The options include: 'compositional' (ie relative abundance), 'Z', 'log10', 'log10p', 'hellinger', 'identity', 'clr', or any method from the vegan::decostand function.

Value

Abundance matrix (OTU x samples).

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
3
data(dietswap)
a <- abundances(dietswap)
# b <- abundances(dietswap, transform='compositional')

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.