View source: R/transform-filter.R
transform_sample_counts | R Documentation |
otu_table
, sample-by-sampleVersion of phyloseq::transform_sample_counts()
that allows a
purrr-style anonymous function.
transform_sample_counts(physeq, fun, ...)
physeq |
|
fun |
A function or formula that can be converted to a function by
|
... |
Additional arguments passed on to |
This function simply calls purrr::as_mapper()
on fun
and passes the
resulting function on to phyloseq::transform_sample_counts()
.
phyloseq::transform_sample_counts()
purrr::as_mapper()
data(GlobalPatterns)
# Filter low prevalence taxa, 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.