Created
February 23, 2016 16:14
-
-
Save arahuja/cb945b39933f3f17bf40 to your computer and use it in GitHub Desktop.
pyensembl example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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