Connects to the Ensembl BioMart database to retrieve gene synonyms for a provided list of gene names. It queries both the 'external_gene_name' and 'external_synonym' filters to maximize match rates.
Value
A named list where:
Names are the standard Ensembl external gene names.
Values are character vectors of unique synonyms for that gene.
Returns NULL if the connection to Ensembl fails or if no genes are found.
Details
The function performs the following steps:
Checks if
biomaRtis installed.safely connects to the
hsapiens_gene_ensembldataset.Queries Ensembl twice: once matching against gene names and once matching against existing synonyms.
Cleans the results by converting empty strings
""toNAand removing incomplete records.
