convertOtuTad {ebimetagenomics} | R Documentation |
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).
convertOtuTad(otu)
otu |
An OTU data frame. |
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.
getSampleOtu
, getRunOtu
, mergeOtu
ps=getProjectSummary("SRP047083") samp=projectSamples(ps) runs=runsBySample(ps,samp[2]) otu=getRunOtu(runs[1]) tad=convertOtuTad(otu) head(tad)