Skip to content

Commit

Permalink
Reverse qual if reverse complementing read
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmero committed Jun 18, 2024
1 parent be8fc4e commit 0ec414a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/trim_primer.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def parse_args():

def trim_read(read_seq, read_qual, fwd_primer, rev_primer, mismatches, barcode_length, rc_read=False):
read_seq = rc(read_seq) if rc_read else read_seq
read_qual = read_qual[::-1] if rc_read else read_qual
fwd_result = edlib.align(fwd_primer, read_seq, mode="HW", task="path", k=mismatches)
rev_result = edlib.align(rev_primer, read_seq, mode="HW", task="path", k=mismatches)

Expand Down

0 comments on commit 0ec414a

Please sign in to comment.