View source: R/core_mimosa2_funcs.R
get_species_cmp_scores | R Documentation |
Updated version of getting all single-species CMP scores for every compound and taxon
get_species_cmp_scores(
species_table,
network,
normalize = T,
relAbund = T,
manual_agora = F,
humann2 = F,
leave_rxns = F,
kos_only = F,
remove_rev = T,
fill_zeros = T
)
species_table |
OTU abundance table (wide format) |
network |
Species-specific network table, product of build_network functions |
normalize |
Whether to normalize rows when making the network EMM |
relAbund |
Whether to use relative abundance normalization |
manual_agora |
Whether the metabolite are already specified using AGORA/BiGG (and therefore should not be mapped back to KEGG) |
humann2 |
Whether the species data is long-form humann2 gene-species abundances |
leave_rxns |
Return individual abundance/direction scores for each species and rxn |
kos_only |
Whether to call non-species-specific version of this function instead |
remove_rev |
Whether to remove reversible reactions before calculating anything |
fill_zeros |
Whether to consider samples with no relevant information on a metabolite as having 0 score (vs a missing value) |
data.table of cmp scores for each taxon and compound
get_species_cmp_scores(species_data, network)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.