File: python3.12-syntax.patch

package info (click to toggle)
busco 5.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,792 kB
  • sloc: python: 10,239; sh: 56; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix python3.12 string
Bug-Debian: https://bugs.debian.org/1085372
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-12-05

--- a/src/busco/busco_tools/miniprot.py
+++ b/src/busco/busco_tools/miniprot.py
@@ -197,7 +197,7 @@ class MiniprotAlignRunner(MiniprotRunner
                         frameshift_events, frameshift_lengths = self.decode_cigar(self.cigar_seq)
                     sta_line = gff.readline()
                     sta_seq = sta_line.strip().split("\t")[1]
-                    self.ata_seq = re.sub("\*", "", sta_seq.upper())
+                    self.ata_seq = re.sub(r"\*", "", sta_seq.upper())
 
                     self.busco_matches[busco_id].add(gene_id)