filter-phyloseq | R Documentation |
These functions are wrappers around dplyr::filter()
that make it possible
to subset rows (corresponding to taxa or samples) using column values in the
taxonomy table or sample data.
filter_tax_table(x, ...)
## S4 method for signature 'phyloseq'
filter_tax_table(x, ...)
## S4 method for signature 'taxonomyTable'
filter_tax_table(x, ...)
filter_sample_data(x, ...)
## S4 method for signature 'phyloseq'
filter_sample_data(x, ...)
## S4 method for signature 'sample_data'
filter_sample_data(x, ...)
x |
A |
... |
Expressions passed to |
data(GlobalPatterns)
ps <- GlobalPatterns %>%
filter_tax_table(Kingdom == "Bacteria") %>%
filter_sample_data(SampleType %in% c("Feces", "Soil"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.