1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Fix Python3.12 string syntax
Bug-Debian: https://bugs.debian.org/1085723
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-06-06
--- a/microbegps/gps.py
+++ b/microbegps/gps.py
@@ -88,7 +88,7 @@ def __calculate_mapping_score_no_pysam(c
# get mismatches from SAM tag 'MD'
score += nm
# get all errors from cigar string
- for ln,er in re.findall('(\d+)([ID])',cigar):
+ for ln,er in re.findall(r'(\d+)([ID])',cigar):
score += float(ln)
return score/float(rlen)
|