phy_transform | R Documentation |
Same as transform(), but also adding further transformations, like hyperbolic arcsine, inverse-rank normal, binary transformation. Additionally it can calculate geometric mean of a sample, although this is not really the same thing
phy_transform(physeq, transform, binary_preval_thresh = 0)
physeq |
a |
transform |
|
binary_preval_thresh |
|
A phyloseq
object with sample-wise transformed data. also, it will create a phyloseq with Taxa in rows!
data(GlobalPatterns) GP_Genus <- tax_glom(GlobalPatterns, "Genus") tax <- "295395" transf <- "clr" transformed_GP <- transform_microbiota_ga(GP_Genus,transform = transf) plot(density(abundances(GP_Genus)[tax,]), main = paste("taxon n°", tax), col = "blue") lines(density(abundances(transformed_GP)[tax,]), col = "red") legend("topright", legend = c("Untransformed", transf), col = c("blue", "red"), pch = 18)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.