relative_abundance: Transform abundance data in an 'otu_table' to relative...

View source: R/relative_abundance.R

relative_abundanceR Documentation

Transform abundance data in an otu_table to relative abundance, sample-by-sample. Function from the phylosmith-package.

Description

Transform abundance data into relative abundance, i.e. proportional data. This is an alternative method of normalization and may not be appropriate for all datasets, particularly if your sequencing depth varies between samples.

Usage

relative_abundance(phyloseq_obj, sig_fig = 4)

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.

sig_fig

Number of significant figures to round to.

Value

phyloseq-object

Examples

relative_abundance(soil_column, 3)

schuyler-smith/phyloschuyler documentation built on March 27, 2024, 4:29 p.m.