Skip to content

Instantly share code, notes, and snippets.

@arahuja
Created February 23, 2016 16:14
Show Gist options
  • Save arahuja/cb945b39933f3f17bf40 to your computer and use it in GitHub Desktop.
Save arahuja/cb945b39933f3f17bf40 to your computer and use it in GitHub Desktop.
pyensembl example
In [3]: transcripts = ensembl.transcripts_at_locus('chr12', 125621282)
In [4]: transcript = transcripts[0]
In [5]: transcript.spliced_offset(125621282)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-59d91508f846> in <module>()
----> 1 transcript.spliced_offset(125621282)
/Users/arahuja/anaconda/envs/py34/lib/python3.4/site-packages/pyensembl-0.8.4-py3.4.egg/pyensembl/transcript.py in spliced_offset(self, position)
296 raise ValueError(
297 "Couldn't find position %d on any exon of %s" % (
--> 298 position, self.id))
299
300 @memoized_property
ValueError: Couldn't find position 125621282 on any exon of ENST00000261686
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment