Description Usage Arguments Value See Also Examples
This function merges two or more OTU count data data frames, such as returned by getRunOtu
. The merged OTU data is returned as a data frame. The ordering of the two data frames to be merged should not be significant. The operation of merging should also be associative.
1 |
... |
A sequence of OTU data frames to be merged. |
An R data frame containing OTU count data. The first column is the OTU ID, the second is the count, and the third contains a taxonomic classification.
getSampleOtu
, getRunOtu
, projectRuns
1 2 3 4 5 6 7 8 9 10 11 12 | ps=getProjectSummary("SRP047083")
samp=projectSamples(ps)
runs=runsBySample(ps,samp[2])
# merge two:
otu1=getRunOtu(runs[1])
otu2=getRunOtu(runs[2])
mergeOtu(otu1,otu2)
# merge many:
otuList=lapply(as.list(runs[1:5]),function(rid){getRunOtu(rid)})
Reduce(mergeOtu,otuList)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.