get_cmp_scores_kos: Updated version of getting all sample-level CMP scores from a...

View source: R/core_mimosa2_funcs.R

get_cmp_scores_kosR Documentation

Updated version of getting all sample-level CMP scores from a KO abundance table

Description

Updated version of getting all sample-level CMP scores from a KO abundance table

Usage

get_cmp_scores_kos(
  ko_table,
  network,
  normalize = T,
  relAbund = T,
  remove_rev = T,
  leave_rxns = F
)

Arguments

ko_table

KO abundance table (wide format)

network

Species-specific network table, product of build_network functions

normalize

Whether to normalize rows when making the network EMM

remove_rev

Whether to remove rev rxns before calculating/normalizing

leave_rxns

Whether to leave individual KO contributions or aggregate to metabolite level

Value

data.table of cmp scores for each taxon and compound

Examples

get_cmp_scores_kos(ko_data, network)

borenstein-lab/mimosa2 documentation built on Dec. 19, 2024, 12:44 a.m.