Learn R Programming

mclink (version 1.1.1)

read_and_process_KO_table: Read and Process KO Sample Table with Pathway Information

Description

This function reads a KO sample table (wide format), validates its contents against pathway information, and returns a filtered table containing only KOs present in both datasets.

Usage

read_and_process_KO_table(in_KO_Sample_wide, pathway_infor)

Value

A list with log and a data frame.The data frame contains the filtered sample data, with only rows that match KOs in the pathway information. Includes an added 'Orthology_Entry' column containing the row names.

Arguments

in_KO_Sample_wide

Character string specifying the path to the input KO sample table file. Should be a tab-delimited file with KO identifiers as row names.

pathway_infor

Data frame containing pathway information, see examples.