openvax / pyensembl

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

When sequence data is not provided, error gracefully #106

Closed tavinathanson closed 9 years ago

tavinathanson commented 9 years ago

Right now, when sequence data is not provided, we just run into an undefined variable.

For example, in transcript.py (stolen from @iskandr):

if self.sequence is None:
    raise ValueError("No 3' UTR sequence for %s" % self)
tavinathanson commented 9 years ago

We should also error gracefully when GTF data is not provided.

tavinathanson commented 9 years ago

Fixed by #108