1) calculate a statistic for each gene representing the differential expression between 2 cell states.
2) use the statistic calculated in 1), along with a set of genes defining a pathway, to calculate an enrichment score.
3) use a null distribution to determine how likely it would be to see this enrichment score by chance