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

Leading edge feature for KS Test #48

Closed andrewdchen closed 1 year ago

andrewdchen commented 1 year ago

Previously rctbl_build would not work for hypeR(... test = "kstest") as the hypeR object output was missing a 'hits column.

The first commit adds a hits column by finding the leading edge index and subsetting the genes in the geneset that are within the leading edge. Calculations for p-values and fdr remain unchanged.

The second commit adds tests.