Learn R Programming

mclink (version 1.1.1)

process_module_loop_plus: Process Module Components with Plus Sign Handling

Description

Processes a vector of KOs, applying different handling methods depending on whether they contain plus signs or not. Handles pathway definitions with required components (plus-separated KOs representing complex subunits).

Usage

process_module_loop_plus(
  KO_vector,
  module_abundance,
  process_step_plus,
  process_step_direct,
  aggregrate_rowname = "step_1",
  step_count = 1,
  plus_scale_method
)

Value

List containing: - abundance_table: Processed abundance values - 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_plus

Function to handle plus-separated KOs (required components)

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)

plus_scale_method

Scaling method for plus-separated KOs ("mean", "min", or "max")