convertOtuTad: Converts an OTU count data frame to a TAD data frame

Description Usage Arguments Value See Also Examples

Description

This function takes as input a data frame representing OTU counts, such as returned by getRunOtu, and tabulates it in the form of a taxa abundance distribution (TAD).

Usage

1

Arguments

otu

An OTU data frame.

Value

An R data frame representing a taxa abundance distribution (TAD). The first column is species abundance and the second column represents the number of species with that level of abundance in the sample.

See Also

getSampleOtu, getRunOtu, mergeOtu

Examples

1
2
3
4
5
6
ps=getProjectSummary("SRP047083")
samp=projectSamples(ps)
runs=runsBySample(ps,samp[2])
otu=getRunOtu(runs[1])
tad=convertOtuTad(otu)
head(tad)

ebimetagenomics documentation built on May 2, 2019, 9:29 a.m.