getDegMerged | R Documentation |
Merge multiple DEG result CSVs with GTF annotations into a single data frame.
getDegMerged(path, gtfPath, columns, collapseName, typeFilter, selectUpDown)
path |
Character. Directory containing DEG result CSV files. |
gtfPath |
Character. Path to the GTF annotation file. |
columns |
Character vector. Names of annotation columns to include from the GTF. |
collapseName |
Logical. If TRUE, strip method/model prefixes from file names when prefixing columns. |
typeFilter |
Character. GTF feature type to filter (e.g., "gene" or "transcript"). |
selectUpDown |
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).
A combined data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.