Description Usage Arguments Details Value Examples
View source: R/universal_microbes.R
Calculate a score (0.0 to 1.0) for the "universality" of given microbe
1 | calc_microbe_universality_score(tax_level = "ASV", Sigmas = NULL)
|
tax_level |
taxonomic level at which to agglomerate data |
Sigmas |
optional list (indexed by host short name) of MAP estimates of microbial covariance; if not provided, this will be loaded |
These scores do not currently incorporate posterior uncertainty. Returns results for correlations in CLR.
named list of per-microbe scores
1 2 3 4 | Sigmas <- load_MAP_estimates(tax_level="ASV", logratio="clr")
scores <- calc_microbe_universality_score(tax_level="ASV", Sigmas=Sigmas)
reorder <- order(unlist(scores), decreasing=TRUE)
scores <- unlist(scores)[reorder]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.