Skip to content

Feature/pa functions#41

Merged
DanielGarbozo merged 6 commits intoBigMindLab:devfrom
DanielGarbozo:feature/pa-functions
Mar 23, 2026
Merged

Feature/pa functions#41
DanielGarbozo merged 6 commits intoBigMindLab:devfrom
DanielGarbozo:feature/pa-functions

Conversation

@DanielGarbozo
Copy link
Copy Markdown
Collaborator

Add:

  • [FUNCTION] For gene retrieval (getgenesPA), adding genes into pa_data as columns(addgenesPA), both on get_genes_PA.R
  • [GSEA handling] (gsea_results + example dataset)
  • [FUNCTION] Merging results (merge_PA)
  • [FUNCTION] Richer plotting (heatmap_PA, heatmap_path_PA, multiplot_PA, splot_PA) all in plot_PA.R.
  • [DOCS]: new/updated Rd files for every PA function
  • [EXAMPLE DATA]: synthetic/preprocessed GSEA results (data/gsea_results.rda + generator in data-raw/), enabling users to run examples out of the box.
  • [VIGNETTE] PA_workflow.Rmd with pre-rendered figures (heatmaps, multiplot, splot) to speed builds and demonstrate the workflow.
  • [UPGRADE] Major visualization: plot_PA gains extensive new features
  • [UPGRADE] heatmap_PA and merge_PA refined with cleaner code and more options.
  • [DOCS] NAMESPACE updated to export the new PA functions; legacy code trimmed where replaced.

remove:

  • [FUNCTION] Heatmap_PA.R Included into plot_PA.R

New functions:
- splot_PA: single-comparison patchwork plot (NES + FDR + MSigDB collections)
- multiplot_PA: multi-comparison faceted barplot with comparison_order param
- heatmap_PA: leading edge heatmaps from R objects
- heatmap_path_PA: leading edge heatmaps from file paths
- getgenesPA: extract leading edge or all genes per gene set
- addgenesPA: append all_genes and/or le_genes columns to pa_data

Updated:
- merge_PA: add fdr_replace param, return data frame, validate Comparison
  column, fix globalVariables, improve documentation
- plot_PA.R split into splot_PA + multiplot_PA
- Simplified FDR: always computed internally as tmp_log10FDR
Updated functions (plot_PA.R):
- getgenesPA: 'top'variable in genes parmater (user-defined
  rank-based fraction)
- addgenesPA: append also top_genes columns to pa_data
- heatmap_PA: add top_genes support in plot_genes parameter

New example dataset (data-raw/gsea_results.R):
- gsea_results: simulated merge_PA() output, 40 gene sets x 3
  comparisons (TumorVsNormal, MetastasisVsNormal, MetastasisVsTumor),
  3 collections (HALLMARK, KEGG, GO), ~60% FDR < 0.05 per comparison

Documentation:
- getgenesPA: add GSEA User Guide definition of tags, le vs top
  distinction, list_gmts reference in geneset_list param
- addgenesPA: add top description
- heatmap_PA: update examples using gsea_results and camera_results
@DanielGarbozo DanielGarbozo merged commit bed8217 into BigMindLab:dev Mar 23, 2026
5 checks passed
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.

1 participant