Permalink
Browse files

Fix generic warning class for inverted locations in BioSQL

  • Loading branch information...
1 parent c1b93f1 commit 8bcb30c8b08c217b8391e0a1680532cbbe717f1c @peterjc peterjc committed Jan 8, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 BioSQL/BioSeq.py
View
4 BioSQL/BioSeq.py
@@ -250,8 +250,10 @@ def _retrieve_features(adaptor, primary_id):
"seqfeature_id %s" % (strand, seqfeature_id))
if end < start:
import warnings
+ from Bio import BiopythonWarning
warnings.warn("Inverted location start/end (%i and %i) for "
- "seqfeature_id %s" % (start, end, seqfeature_id))
+ "seqfeature_id %s" % (start, end, seqfeature_id),
+ BiopythonWarning)
locations.append((location_id, start, end, strand))
# Get possible remote reference information
remote_results = adaptor.execute_and_fetchall(

0 comments on commit 8bcb30c

Please sign in to comment.