% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/group_ko_by_module.R
\name{group_ko_by_module}
\alias{group_ko_by_module}
\title{Group KO Abundance Data by Module}
\usage{
group_ko_by_module(pathway_infor, Sample_KO_abundance)
}
\arguments{
\item{pathway_infor}{Data frame containing pathway information, see examples.}

\item{Sample_KO_abundance}{Data frame of KO abundances with:
- Rows as KO identifiers
- Columns as samples
- Orthology_Entry column}
}
\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
}
\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.
}
