phantasus
phantasus copied to clipboard
Switching between horizontal and vertical GSEA plots leads to different P-value results.
Here are examples of GSEA plots for the same gene set but with different layouts:
The p-values and NES do not match between different layouts of the plot. I believe that this issue may be resolved by setting a seed before running fgsea
:
https://github.com/ctlab/phantasus/blob/c20ab5e1b626a399dbd46ca173928ae7bbae314b/R/gseaPlot.R#L78