Skip to content

Add plotheatmap_leadingedge_GSEA function with roxygen2 documentation and export#25

Merged
danoguevara merged 3 commits intoBigMindLab:mainfrom
DanielGarbozo:temp
Jul 26, 2025
Merged

Add plotheatmap_leadingedge_GSEA function with roxygen2 documentation and export#25
danoguevara merged 3 commits intoBigMindLab:mainfrom
DanielGarbozo:temp

Conversation

@DanielGarbozo
Copy link
Collaborator

This pull request introduces the new function plotheatmap_leadingedge_GSEA(), which automates the generation of annotated heatmaps based on leading-edge genes derived from GSEA results.

Main contributions:

  • Defines a reusable function that integrates multiple data sources, including GSEA results, GMT files, ranked gene lists, expression matrices, and sample metadata.
  • Allows user-defined configuration for metadata columns (sample_col, group_col) to ensure compatibility across datasets.
  • Computes leading-edge genes per geneset based on the tags value from GSEA and the provided gene ranking.
  • Optionally exports a TSV file containing the enriched gene sets with their associated leading-edge genes (save_dataframe = TRUE).
  • Generates one heatmap per geneset, saved in both PDF and JPEG formats, organized into subdirectories under the specified output_dir.

Files modified or added:
R/plotheatmap_leadingedge_GSEA.R: Function implementation with roxygen2 documentation.
NAMESPACE: Export statement to make the function available to users.
man/plotheatmap_leadingedge_GSEA.Rd: Documentation generated via roxygen2.

Introduce a new function, plotheatmap_leadingedge_GSEA(), which:
- Reads GMT, GSEA results, ranked gene lists, expression and metadata files.
- Extracts leading-edge genes and optionally saves the merged dataframe.
- Generates per-geneset heatmaps (PDF + JPG) under output_dir.
Includes full roxygen2 header for documentation.
Provide Rd file with usage, arguments, details and examples for plotheatmap_leadingedge_GSEA().
@danoguevara danoguevara merged commit 173deac into BigMindLab:main Jul 26, 2025
0 of 5 checks passed
@DanielGarbozo DanielGarbozo deleted the temp branch August 4, 2025 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants