Using the fast preranked gene set enrichment analysis (fgsea) package
From the original paper describing the Gene Set Enrichment Analysis: The goal of GSEA is to determine whether members of a gene set S tend to occur toward the top (or bottom) of the list L, in which case the gene set is correlated with the phenotypic class distinction.