Learn R Programming

mclink (version 1.1.1)

process_step_plus: Process Plus-Separated KOs with Specified Scaling Method

Description

Handles plus-separated KOs by applying the specified scaling method (mean, min, or max). Processes multiple KOs separated by plus signs and aggregates them into a single row. Note: For mean calculation, uses the sum of existing KO abundances divided by total number of KOs (including those with zero abundance in all samples).

Usage

process_step_plus(
  module_abundance,
  KOs = c("K14126+K14127+K14128"),
  aggregrate_rowname,
  step_count = 1,
  plus_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 string of plus-separated KO IDs (default: "K14126+K14127+K14128")

aggregrate_rowname

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

step_count

Processing step counter (default: 1)

plus_scale_method

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