Skip to content

Commit 4ee4f0e

Browse files
committed
Add a simple regression for Foldseek search
1 parent 5f58883 commit 4ee4f0e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

util/run_regression.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ mkdir -p "${BASEDIR}"
1313
"${SPACEDUST}" createsetdb ${DATA}/*.faa "${BASEDIR}/genome" "${BASEDIR}/tmp"
1414
"${SPACEDUST}" clustersearch "${BASEDIR}/genome" "${BASEDIR}/genome" "${BASEDIR}/result.tsv" "${BASEDIR}/tmp" --filter-self-match
1515

16+
#foldseek related regression
17+
"${SPACEDUST}" createsetdb ${DATA}/foldseek_testdb/foldseek_test "${BASEDIR}/foldseek_testdb" "${BASEDIR}/tmp"
18+
"${SPACEDUST}" clustersearch "${BASEDIR}/foldseek_testdb" "${BASEDIR}/foldseek_testdb" "${BASEDIR}/result_foldseek.tsv" "${BASEDIR}/tmp" --filter-self-match --search-mode 2
19+
1620
awk '/^>/ { cnt++; } END { if (cnt != 308) exit 1; }' "${BASEDIR}/result.tsv" \
1721
|| fail "Check 1 failed. Expected: 308 Actual: $(awk '/^>/ { cnt++; } END { print cnt; }' "${BASEDIR}/result.tsv")"
1822
awk '/^#/ { if ($4 < 1E-20) cnt++; } END { if (cnt != 2) exit 1; }' "${BASEDIR}/result.tsv" \
19-
|| fail "Check 2 failed. Expected: 2 Actual: $(awk '/^#/ { if ($4 < 1E-20) cnt++; } END { print cnt; }' "${BASEDIR}/result.tsv")"
23+
|| fail "Check 2 failed. Expected: 2 Actual: $(awk '/^#/ { if ($4 < 1E-20) cnt++; } END { print cnt; }' "${BASEDIR}/result.tsv")"
24+
25+
#foldseek related checks
26+
awk '/^>/ { cnt++; } END { if (cnt != 568) exit 1; }' "${BASEDIR}/result_foldseek.tsv" \
27+
|| fail "Check 3 failed. Expected: 568 Actual: $(awk '/^>/ { cnt++; } END { print cnt; }' "${BASEDIR}/result_foldseek.tsv")"

0 commit comments

Comments
 (0)