Mercurial > repos > cpt > cpt_find_spanins
changeset 5:46b252c89e9e draft
planemo upload commit 25fff8b3887beeb66c2d53e2a32f9af9f34e40b6
| author | cpt | 
|---|---|
| date | Fri, 20 Sep 2024 04:19:02 +0000 | 
| parents | 673d1776d3b9 | 
| children | f8f045f436d8 | 
| files | cpt.py findSpanin.py findSpanin.xml spaninFuncs.py | 
| diffstat | 4 files changed, 12 insertions(+), 11 deletions(-) [+] | 
line wrap: on
 line diff
--- a/cpt.py Fri Jan 05 05:51:06 2024 +0000 +++ b/cpt.py Fri Sep 20 04:19:02 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
--- a/findSpanin.py Fri Jan 05 05:51:06 2024 +0000 +++ b/findSpanin.py Fri Sep 20 04:19:02 2024 +0000 @@ -2,15 +2,12 @@ ######### Much of this code is very "blocked", in the sense that one thing happens...then a function happens on the return...then another function...etc...etc... import argparse -import os import re # new -import itertools # new -from collections import Counter, OrderedDict +from collections import Counter from spaninFuncs import ( getDescriptions, grabLocs, spaninProximity, - splitStrands, tuple_fasta, lineWrapper, )
--- a/findSpanin.xml Fri Jan 05 05:51:06 2024 +0000 +++ b/findSpanin.xml Fri Sep 20 04:19:02 2024 +0000 @@ -4,8 +4,11 @@ <import>macros.xml</import> </macros> - <expand macro="requirements"> - </expand> + <requirements> + <requirement type="package" version="3.9">python</requirement> + <requirement type="package" version="1.84">biopython</requirement> + <requirement type="package" version="2024.9.11">regex</requirement> + </requirements> <command detect_errors="aggressive"><