montilab / hypeR

An R Package for Geneset Enrichment Workflows
https://montilab.github.io/hypeR-docs/
GNU General Public License v3.0
76 stars 11 forks source link

hypeR-dot plots with KS test should incorporate directionality information #38

Open tetomonti opened 2 years ago

tetomonti commented 2 years ago

Ideally, when hypeR is called with the KS test, the hypeR-dot plot should color-code the dots based on whether a geneset is positively (red) or negatively (blue) skewed (w/ white as non-significant in the middle).

If this solution is not feasible, an alternative would be to do internally what is now shown in the vignette for fastGSEA, where the output is split into es>0 and es<0 and these results are reported separately. E.g., if the ranked signature sig is tested, its results should be split into two signatures, sig.up and sig.dn, and the hypeR-dot plot will have two corresponding "columns", so we'll know what's enriched up and what's enriched down.