text: user12743: 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
  
  user3541: 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')
  
  
original_text: 12743: <p>Is there a python equivalent to <a href="https://bioconductor.org/packages/release/bioc/html/ensembldb.html" rel="nofollow noreferrer">ensembldb</a>? I want to get genome coordinates for a transcript (like the function <code>transcriptToGenome</code>) 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.</p>
  <p>Thanks</p>
   3541: <p><code>pyensembl</code> should do the job:</p>
  <pre><code>&gt;&gt;&gt; from pyensembl import EnsemblRelease
  &gt;&gt;&gt; data = EnsemblRelease(76)
  &gt;&gt;&gt; data.transcript_by_id(&quot;ENST00000506751&quot;)
  Transcript(..., contig='5', start=140861224, end=140863521, strand='+', genome='GRCh38')
  </code></pre>
  