Learn R Programming

mclink (version 1.1.1)

process_module_loop_comma: Process Module Components with Comma Handling

Description

Processes a vector of KOs, applying different handling methods depending on whether they contain commas or not. Useful for processing complex pathway definitions with alternative KOs.

Usage

process_module_loop_comma(
  KO_vector,
  module_abundance,
  process_step_comma,
  process_step_direct,
  aggregrate_rowname = "step_1",
  step_count = 1,
  comma_scale_method
)

Value

List containing: - abundance_table: Processed abundance Data frame - step_count: Updated step counter - abundance_log: log

Arguments

KO_vector

Character vector of KO identifiers to process

module_abundance

Data frame containing KO abundance data

process_step_comma

Function to handle comma-separated KOs (alternative forms)

process_step_direct

Function to handle individual KOs

aggregrate_rowname

Base name for row aggregation (default: 'step_1')

step_count

Counter for processing steps (default: 1)

comma_scale_method

Scaling method for comma-separated KOs ("sum" or "max")