Description Usage Arguments Value Examples
View source: R/utils-general.R
Function to get a subset of an OTUset object.
1 | subOTUset(object, samples, otus)
|
object |
An OTUset object |
samples |
A list of sample names |
otus |
A list of OTU names |
subOTUset
returns an OTUset
1 2 3 4 5 6 7 8 9 | ## locate directory with data
dirPath <- system.file("extdata/Sogin_2006", package="OTUbase")
## read in data into OTUset object
soginOTU <- readOTUset(dirPath=dirPath, level="0.03", samplefile="sogin.groups", fastafile="sogin.fasta", otufile="sogin.unique.filter.fn.list", sampleADF="sample_metadata.txt")
## get subset of soginOTU
subOTUset(soginOTU, samples=getSamples(soginOTU, colnum="Site", value="Labrador", exact=FALSE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.