Learn R Programming

ebimetagenomics (version 0.6)

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

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

convertOtuTad(otu)

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

Run this code
# NOT RUN {
ps=getProjectSummary("SRP047083")
samp=projectSamples(ps)
runs=runsBySample(ps,samp[2])
otu=getRunOtu(runs[1])
tad=convertOtuTad(otu)
head(tad)
# }

Run the code above in your browser using DataLab