Skip to content

Commit 38ec456

Browse files
committed
Merge branch 'dev' of https://github.com/rcedgar/muscle into dev
conflict
2 parents ca49e12 + 5eea284 commit 38ec456

7 files changed

+77
-4
lines changed

test_results/success_list.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
muscle5.2.linux64[cbf158b] 2024-08-19/05:36:26
1+
muscle5.2.linux64[b81d621] 2024-08-19/10:13:05

test_scripts/RUN_TESTS.bash

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash -e
2+
3+
if [ ! -s ./_run_tests.bash ] ; then
4+
echo "ERROR -- must run in test_scripts/ directory"
5+
exit 1
6+
fi
7+
8+
./_run_tests.bash
9+
10+
if [ $? != 0 ] ; then
11+
echo === FAILED ===
12+
fi
13+
14+
tail ../test_output/TEST_LOG.txt

test_scripts/_run_tests.bash

+5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ echo STARTED `date` >> $log
2424
./run_rdrp_seqs.bash
2525
./run_rdrp_structs.bash
2626

27+
./qscore_BB_seqs.bash
28+
./qscore_BB_structs.bash
29+
./qscore_rdrp.bash
30+
2731
python3 ./check_logs.py
32+
python3 ./check_results.py
2833
python3 ./update_success_list.py $ver $date
2934

3035
echo COMPLETED $date >> $log

test_scripts/check_results.py

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/python3
2+
3+
import sys
4+
import re
5+
6+
errors = 0
7+
def qscore(fn, Q=None, TC=None):
8+
global errors
9+
q = None
10+
tc = None
11+
lines = []
12+
try:
13+
for line in open(fn):
14+
lines.append(line)
15+
16+
except:
17+
print("ERROR reading file " + fn)
18+
errors += 1
19+
return
20+
for line in lines:
21+
if line.find(", TC=") > 0:
22+
M = re.search(r"Q=([0-9.]*), TC=([0-9.]*)", line)
23+
if not M is None:
24+
q = float(M.group(1))
25+
tc = float(M.group(2))
26+
break
27+
if q is None or tc is None:
28+
print("ERROR Q= TC= not found " + fn)
29+
errors += 1
30+
if q < Q*0.7:
31+
print("ERROR Q %.4f << %.4f %s" % (q, Q, fn))
32+
errors += 1
33+
if tc < TC*0.7:
34+
print("ERROR T %.4f << %.4f %s" % (tc, TC, fn))
35+
errors += 1
36+
37+
qscore("../test_logs/qscore_BB_seqs_BB11001.log", Q=1, TC=1)
38+
qscore("../test_logs/qscore_BB_seqs_BB11002.log", Q=0.611, TC=0)
39+
qscore("../test_logs/qscore_BB_seqs_BB11004.log", Q=0.674, TC=0.5)
40+
qscore("../test_logs/qscore_BB_seqs_BB11005.log", Q=0.568, TC=0.17)
41+
qscore("../test_logs/qscore_BB_seqs_BB11006.log", Q=0.561, TC=0.375)
42+
qscore("../test_logs/qscore_BB_seqs_BB11007.log", Q=0.837, TC=0.662)
43+
qscore("../test_logs/qscore_BB_seqs_BB11009.log", Q=0.758, TC=0.7)
44+
qscore("../test_logs/qscore_BB_structs_BB11001.log", Q=0.985, TC=0.982)
45+
qscore("../test_logs/qscore_BB_structs_BB11002.log", Q=0.838, TC=0.353)
46+
qscore("../test_logs/qscore_BB_structs_BB11004.log", Q=0.812, TC=0.685)
47+
qscore("../test_logs/qscore_BB_structs_BB11005.log", Q=0.754, TC=0.455)
48+
qscore("../test_logs/qscore_BB_structs_BB11006.log", Q=0.683, TC=0.5)
49+
qscore("../test_logs/qscore_BB_structs_BB11007.log", Q=0.925, TC=0.768)
50+
qscore("../test_logs/qscore_BB_structs_BB11009.log", Q=0.764, TC=0.617)
51+
qscore("../test_logs/qscore_rdrp.log", Q=0.589, TC=0.155)
52+
53+
print("check_results %d errors" % errors)
54+
exit(1 if errors > 0 else 0)

test_scripts/qscore_BB_seqs.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mkdir -p $outdir $logdir
66

77
for acc in `cat ../test_data/info/BB.accs`
88
do
9-
muscle \
9+
../bin//muscle \
1010
-qscore ../test_output/BB_seqs/$acc \
1111
-ref ../test_data/ref_alns/$acc \
1212
-log ../test_logs/qscore_BB_seqs_$acc.log

test_scripts/qscore_BB_structs.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mkdir -p $outdir $logdir
66

77
for acc in `cat ../test_data/info/BB.accs`
88
do
9-
muscle \
9+
../bin/muscle \
1010
-qscore ../test_output/BB_structs/$acc \
1111
-ref ../test_data/ref_alns/$acc \
1212
-bysequence \

test_scripts/qscore_rdrp.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
muscle \
1+
../bin/muscle \
22
-qscore ../test_output/rdrp/rdrp_seqs.afa \
33
-ref ../test_output/rdrp/rdrp_structs.afa \
44
-bysequence \

0 commit comments

Comments
 (0)