calc_microbe_universality_score: Calculate a score (0.0 to 1.0) for the "universality" of...

Description Usage Arguments Details Value Examples

View source: R/universal_microbes.R

Description

Calculate a score (0.0 to 1.0) for the "universality" of given microbe

Usage

1
calc_microbe_universality_score(tax_level = "ASV", Sigmas = NULL)

Arguments

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

Details

These scores do not currently incorporate posterior uncertainty. Returns results for correlations in CLR.

Value

named list of per-microbe scores

Examples

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]

kimberlyroche/ROL documentation built on Dec. 10, 2020, 2:18 a.m.