single_rarefy: Rarefy samples in a taxa table

View source: R/normalization.R

single_rarefyR Documentation

Rarefy samples in a taxa table

Description

Rarefying means to randomly select a specified number of observations from each sample. This approach is used to normalize for differences in the number of observations (i.e. sequencing depth) across samples. Samples with fewer observations (sequences) than the specified depth will be removed.

Usage

single_rarefy(input, depth)

Arguments

input

The input dataset as loaded by load_taxa_table.

depth

The number of observations to randomly select for each sample.

Value

Will return a dataset list similar to the input.

Examples

single_rarefy(fruits_veggies, 1000)

leffj/mctoolsr documentation built on Aug. 5, 2022, 1:27 a.m.