Merge multiple DEG result CSVs with GTF annotations into a single data frame.
getDegMerged(path, gtfPath, columns, collapseName, typeFilter, selectUpDown)
A combined data frame
Character. Directory containing DEG result CSV files.
Character. Path to the GTF annotation file.
Character vector. Names of annotation columns to include from the GTF.
Logical. If TRUE, strip method/model prefixes from file names when prefixing columns.
Character. GTF feature type to filter (e.g., "gene" or "transcript").
Logical. If TRUE, only include IDs with "diffExp" == UP or DOWN.
This function reads all CSV files in a directory, validates presence of required columns ("ID", and optionally "diffExp"), filters for up/down regulated genes if requested, extracts annotation fields from a GTF, and returns a merged table of selected annotation columns alongside all DEG metrics (with optional file-based column prefixes).