links:
https://pypi.org/project/ensembl-converter/
pip install Ensembl_converter
批量转:
from Ensembl_converter import EnsemblConverter
# Create an instance of EnsemblConverter
converter = EnsemblConverter()
# Provide a list of Ensembl IDs
ensembl_ids = ['ENSG00000000457', 'ENSG00000000460']
# Convert Ensembl IDs to gene symbols
result = converter.convert_ids(ensembl_ids)
# Print the resulting DataFrame
print(result)
结果: