openvax / pyensembl

Python interface to access reference genome features (such as genes, transcripts, and exons) from Ensembl
Apache License 2.0
365 stars 66 forks source link

Error in returning gene.exons #215

Closed abaltsen closed 5 years ago

abaltsen commented 5 years ago

I am using pyensembl version 1.7.2 for python 3.5.4 to get all exons for a given gene. The error occurs on return list(sorted(exon_set)) TypeError: unorderable types: Exon() < Exon(). To reproduce this error, construct a gene object and call on the exons property. I have found that a simple fix of removing sorted(), fixes this error.

iskandr commented 5 years ago

Thanks @abaltsen -- should be fixed soon (https://github.com/openvax/pyensembl/pull/216)

iskandr commented 5 years ago

OK, sorry for the delay. I just merged #216 and once the tests on the master branch finish, a new version will get uploaded to PyPI.