diff cpt.py @ 3:08499fbf8697 draft

planemo upload commit 96d9c038cdd9f83fcc55d2f20ab1057129d11589-dirty
author cpt
date Wed, 18 Sep 2024 04:02:06 +0000
parents 4e02e6e9e77d
children bc16792ecfd2
line wrap: on
line diff
--- a/cpt.py	Fri Jan 05 05:56:25 2024 +0000
+++ b/cpt.py	Wed Sep 18 04:02:06 2024 +0000
@@ -4,6 +4,7 @@
 from Bio import SeqIO
 from Bio.Data import CodonTable
 import logging
+import 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