Learn R Programming

mclink (version 1.1.1)

process_step_comma: Process Comma-Separated KOs with Specified Scaling Method

Description

Handles comma-separated KOs by applying the specified scaling method (sum or max). Processes multiple KOs separated by commas and aggregates them into a single row.

Usage

process_step_comma(
  module_abundance,
  KOs = c("K14126,K14127,K14128"),
  aggregrate_rowname,
  step_count = 1,
  comma_scale_method
)

Value

List containing: - abundance_table: Processed data with aggregated values - step_count: Updated step counter - abundance_log: log

Arguments

module_abundance

Data frame containing KO abundance data with required columns: Orthology_Entry, Module_Entry, Definition

KOs

Character vector of comma-separated KO IDs (default: "K14126,K14127,K14128")

aggregrate_rowname

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

step_count

Processing step counter (default: 1)

comma_scale_method

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