Skip to content

Commit

Permalink
Fix correctly paired logic
Browse files Browse the repository at this point in the history
  • Loading branch information
BioWilko committed Oct 21, 2024
1 parent 0a7fc7e commit ead1260
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions artic/align_trim.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,8 @@ def handle_segment(
# check if primers are correctly paired and then assign read group
# NOTE: removed this as a function as only called once
# TODO: will try improving this / moving it to the primer scheme processing code
correctly_paired = p1[2]["Primer_ID"].replace("_LEFT", "") == p2[2][
"Primer_ID"
].replace("_RIGHT", "")
correctly_paired = p1[2]["Primer_ID"].split("_")[1] == p2[2]["Primer_ID"].split("_")[1]


if not args.no_read_groups:
if correctly_paired:
Expand Down

0 comments on commit ead1260

Please sign in to comment.