View source: R/phyloseq_extract_otus.R
phyloseq_extract_shared_otus | R Documentation |
This function will subset phyloseq object to the OTUs that are present in all samples. By default all samples will be taken into account, otherwise it's possible to take a subset of samples.
phyloseq_extract_shared_otus(x, samp_names = sample_names(x))
x |
A phyloseq-class object |
samp_names |
Character vector with sample names (default, all samples) |
Phyloseq object with the subset of data.
data(esophagus)
# Extract OTUs that are present in all samples
ps <- phyloseq_extract_shared_otus(esophagus, samp_names = sample_names(esophagus))
ps
otu_table(ps)
# Extract shared OTUs between two samples
ps2 <- phyloseq_extract_shared_otus(esophagus, samp_names = c("B", "C"))
ps2
otu_table(ps2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.