phantasus icon indicating copy to clipboard operation
phantasus copied to clipboard

Switching between horizontal and vertical GSEA plots leads to different P-value results.

Open vdsukhov opened this issue 11 months ago • 0 comments

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

vdsukhov avatar Mar 25 '24 15:03 vdsukhov