The enrichment factor is the ratio of the number of genes in a given pathway divided by the total number of genes in the pathway.