Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Mar 19, 2024
1 parent 3cf99f5 commit 8544133
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/str.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions test.py
Original file line number Diff line number Diff line change
@@ -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()))

0 comments on commit 8544133

Please sign in to comment.