Learn R Programming

mclink (version 1.1.1)

group_ko_by_module: Group KO Abundance Data by Module

Description

Processes KO abundance data to group by metabolic modules, converting presence/absence data into module-level KO lists. Handles missing KOs and maintains sample-specific KO profiles.

Usage

group_ko_by_module(pathway_infor, Sample_KO_abundance)

Value

A data frame where: - Rows are module names - Columns are samples - Cell values are space-separated lists of present KOs - Empty strings for modules with no detected KOs

Arguments

pathway_infor

Data frame containing pathway information, see examples.

Sample_KO_abundance

Data frame of KO abundances with: - Rows as KO identifiers - Columns as samples - Orthology_Entry column