
Run Functional Enrichment using EnrichR
run_functional_enrichment.RdThis function performs functional enrichment analysis using the EnrichR package. It takes a list of gene symbols and a list of EnrichR databases, connects to the EnrichR API, retrieves the enrichment results, filters them based on the adjusted P-value threshold, and returns the filtered results. The function also prints the number of significant terms found for each database to the console. If no databases are specified, it defaults to using "GO_Biological_Process_2023", "KEGG_2021_Human", and "Reactome_Pathways_2024".