Summarize a microbiome_dataset at a chosen taxonomy rank and then apply a
count transformation to the aggregated abundance matrix.
Arguments
- object
A
microbiome_datasetobject.- taxonomic_rank
Taxonomic rank used for summarization.
- what
Aggregation method used before transformation.
- method
Transformation method.
- pseudocount
A pseudocount added before transformations that require strictly positive values.
- na_remove
Should taxa with missing rank be removed before summarization?
- ...
Other parameters passed to
transform_counts().
Examples
data("global_patterns", package = "microbiomedataset")
x0 <- prune_taxa(global_patterns, variable_id = global_patterns@variable_info$variable_id[1:200])
x <- transform_taxa(
object = x0,
taxonomic_rank = "Genus",
what = "sum_intensity",
method = "relative"
)
attr(x@expression_data, "transform_method")
#> [1] "relative"
