Skip to content

Commit

Permalink
Merge pull request #107 from fmaguire/patch-1
Browse files Browse the repository at this point in the history
Fix bug for primer prefixes containing numbers
  • Loading branch information
jts authored May 30, 2023
2 parents 2332b92 + 3f6d157 commit 7a19778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/scripts/negative_control_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def print_tsv(self):
for row in reader:
position = int(row["start"]) + int(row["position"])
depth = int(row["depth"])
amplicon_id = int(re.sub("[^0-9]", '', row["amplicon_id"].lstrip(args.primer_prefix)))
amplicon_id = int(re.sub("[^0-9]", '', row["amplicon_id"].replace(args.primer_prefix, '')))

#
genome_coverage.update(position, depth)
Expand Down

0 comments on commit 7a19778

Please sign in to comment.