Dear digIS authors,
I encountered an error during a digIS run:
ERROR: GRange: start or end position is out of the range.
This error originates from the following lines in digIS.py:
self.recs.append(
RecordDigIS.from_hmmer(
hsp, sid, dna_range[0], dna_range[1], strand,
self.genome.name, "chr", self.genome.seq, self.genome.length
)
)
self.recs_attrib.append(RecordDigISAttrib(source_type, hsp))
To diagnose the problem, I wrapped the RecordDigIS.from_hmmer() call with a try/except block:
try:
self.recs.append(
RecordDigIS.from_hmmer(
hsp, sid, dna_range[0], dna_range[1], strand,
self.genome.name, "chr", self.genome.seq, self.genome.length
)
)
except Exception as e:
print("ERROR on HSP:")
print(" sid =", hsp.sid)
print(" qid =", hsp.qid)
print(" sstart, send =", hsp.sstart, hsp.send)
print(" frame =", frame)
print(" dna_range =", dna_range)
print(" genome_length =", self.genome.length)
print(" ERROR:", e)
raise
Output from the diagnostic:
ERROR on HSP:
sid = GenBank_CP138752.1_4
qid = IS1182
sstart, send = 1598 1665
frame = 4
dna_range = (-1, 202)
genome_length = 4995
ERROR: GRange: start or end position is out of the range.
The issue seems to be that dna_range contains an invalid coordinate:
I can provide additional information if needed.
Thank you!
Dear digIS authors,
I encountered an error during a digIS run:
This error originates from the following lines in
digIS.py:To diagnose the problem, I wrapped the
RecordDigIS.from_hmmer()call with a try/except block:Output from the diagnostic:
The issue seems to be that
dna_rangecontains an invalid coordinate:I can provide additional information if needed.
Thank you!