From 8544133b8cf2065497d03bd94df59adc1cb55cef Mon Sep 17 00:00:00 2001 From: Lianming Du Date: Tue, 19 Mar 2024 19:29:37 +0800 Subject: [PATCH] update test --- src/str.c | 2 +- test.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/str.c b/src/str.c index b200104..10a3d3e 100644 --- a/src/str.c +++ b/src/str.c @@ -158,7 +158,7 @@ static PyObject* pytrf_strfinder_as_list(pytrf_STRFinder *self) { b = self->boundary[j]; while ((i < b) && (self->seq[i] == self->seq[i+j])) { - ++i; + ++i; } rl = i + j - cs; diff --git a/test.py b/test.py index d6193f4..e91ac67 100644 --- a/test.py +++ b/test.py @@ -1,14 +1,14 @@ +import time import pytrf import pyfastx -fa = pyfastx.Fasta('../krait2/data/chr2.fa.gz', uppercase=True) +fa = pyfastx.Fasta('../data/chr2.fa.gz', uppercase=True) for s in fa: pass -atrs = pytrf.GTRFinder(s.name, s.seq, min_motif=10, max_motif=100) +ssrs = pytrf.STRFinder(s.name, s.seq) +for ssr in ssrs: + print(ssr.as_list()) + break -for atr in atrs: - print(atr.as_string()) - -#print(len(atrs.as_list()))