Description Usage See Also Examples
View source: R/transform-filter.R
This is a wrapper around phyloseq::transform_sample_counts that allows use
of a purrr-style anonymous function for .f
.
1 | transform_sample_counts(physeq, .f, ...)
|
phyloseq::transform_sample_counts tidyseq::filter_taxa
1 2 3 4 5 6 7 | library(phyloseq)
library(tidyseq)
data(GlobalPatterns)
# Filter low prevalence taxa and then convert to proportions
gp.prop <- GlobalPatterns %>%
filter_taxa2(~ sum(. > 0) > 5) %>%
transform_sample_counts(~ . / sum(.))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.