# ensembldb equivalent in python

Is there a python equivalent to ensembldb? I want to get genome coordinates for a transcript (like the function transcriptToGenome) but need to do it in python. I wrote a R script that I'm calling from python but I was hoping there was a more direct way to do this.

Thanks

pyensembl should do the job:

>>> from pyensembl import EnsemblRelease
>>> data = EnsemblRelease(76)
>>> data.transcript_by_id("ENST00000506751")
Transcript(..., contig='5', start=140861224, end=140863521, strand='+', genome='GRCh38')

• Thanks so much this is perfect. Do you happen to know if there is anything similar for NCBI?
– Greg
Jul 12 at 15:07
• – haci
Jul 12 at 16:16
• I don't see a way to map coordinates with Bio.Entrez unfortunately. Thanks though.
– Greg
Jul 12 at 19:29