# HG changeset patch # User cpt # Date 1726804960 0 # Node ID 8f6c09b6a43d51c8dab3f105beeafb71238b19ca # Parent 859e18a9814a152e59972e4fd7b5b51c1f3a176b planemo upload commit 471832a126aa25d903becae9a074a6b7b1ff7092-dirty diff -r 859e18a9814a -r 8f6c09b6a43d cpt.py --- a/cpt.py Fri Sep 20 03:52:11 2024 +0000 +++ b/cpt.py Fri Sep 20 04:02:40 2024 +0000 @@ -4,6 +4,7 @@ from Bio import SeqIO from Bio.Data import CodonTable import logging +import regex as re logging.basicConfig() log = logging.getLogger() @@ -147,7 +148,7 @@ if index % 3 != 0: continue n = s[start:index] - for (offset, n, t) in self.start_chop_and_trans(n): + for offset, n, t in self.start_chop_and_trans(n): if n and len(t) >= self.min_len: yield start + offset, n, t start = index @@ -294,7 +295,7 @@ if index % 3 != 0: continue n = s[start:index] - for (offset, n, t) in self.start_chop_and_trans(n): + for offset, n, t in self.start_chop_and_trans(n): if n and len(t) >= self.min_len: yield start + offset, n, t start = index