Mercurial > repos > cpt > cpt_putative_osp
changeset 4:8f6c09b6a43d draft default tip
planemo upload commit 471832a126aa25d903becae9a074a6b7b1ff7092-dirty
author | cpt |
---|---|
date | Fri, 20 Sep 2024 04:02:40 +0000 |
parents | 859e18a9814a |
children | |
files | cpt.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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