Processes a vector of KOs, applying different handling methods depending on whether they contain plus signs, commas, or both. Handles complex pathway definitions with both required components (plus-separated) and alternative forms (comma-separated).
process_module_loop_plu_comma(
KO_vector,
module_abundance,
process_step_plus,
process_step_comma,
process_step_direct,
aggregrate_rowname = "step_1",
step_count = 1,
plus_scale_method,
comma_scale_method
)List containing: - abundance_table: Processed abundance values - step_count: Updated step counter - abundance_log: log
Character vector of KO identifiers to process
Data frame containing KO abundance data
Function to handle plus-separated KOs (required components)
Function to handle comma-separated KOs (alternative forms)
Function to handle individual KOs
Base name for row aggregation (default: 'step_1')
Counter for processing steps (default: 1)
Scaling method for plus-separated KOs ("mean", "min", or "max")
Scaling method for comma-separated KOs ("sum" or "max")