We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d8aaaf commit 19ddfeeCopy full SHA for 19ddfee
neat/read_simulator/utils/read.py
@@ -453,10 +453,12 @@ def make_cigar(self):
453
cig_string, cig_count, curr_char, cig_length = self.align_seqs()
454
if cig_length < self.run_read_length:
455
_LOG.warning("Poor alignment, trying reversed")
456
- cig_string2, cig_count2, curr_char2, cig_length = self.align_seqs()
457
- if cig_length < self.run_read_length:
458
- _LOG.error("Alignment still not working")
459
- sys.exit(1)
+ cig_string2, cig_count2, curr_char2, cig_length2 = self.align_seqs()
+ if cig_length2 < cig_length:
+ cig_length = cig_length2
+ while cig_length < self.run_read_length:
460
+ cig_string += "M"
461
+ cig_length += 1
462
463
# append the final section as we return
464
return cig_string + str(cig_count) + curr_char
0 commit comments