Skip to content

Commit

Permalink
Fix after-filtering alignment counts
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed May 30, 2022
1 parent 5dbc15a commit de62102
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/polypolish_insert_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ def filter_sam(in_filename, out_filename, alignments, low, high, correct_orienta
out_file.write(line)
continue
a = Alignment(line)
if not a.is_aligned():
out_file.write(line)
continue
if read_num == 1:
this_name, pair_name = a.read_name + '_1', a.read_name + '_2'
else:
Expand Down

0 comments on commit de62102

Please sign in to comment.