Skip to content

Commit

Permalink
feat: add TC for adjacent=false
Browse files Browse the repository at this point in the history
  • Loading branch information
leejoey0921 committed Sep 2, 2024
1 parent 6a2df6b commit b9e294a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions regression/run_linclust_adjacent_disabled.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh -e
CLUDB=
"${MMSEQS}" createdb "${DATADIR}/clu.fasta" "${RESULTS}/clu"

"${MMSEQS}" linclust "${RESULTS}/clu" "$RESULTS/results_clu" "$RESULTS/tmp" --cov-mode 1 --cluster-mode 0 -c 0.90 --min-seq-id 0.50 --match-adjacent-seq false
"${MMSEQS}" createtsv "${RESULTS}/clu" "${RESULTS}/clu" "$RESULTS/results_clu" "$RESULTS/results_cluster.tsv"

awk 'BEGIN { l = "" } l != $1 { l = $1; cnt++; } { t++; } END { print cnt"\t"t"\t"(t/cnt) }' "$RESULTS/results_cluster.tsv" > "$RESULTS/results_summary.tsv"
ACTUAL="$(cut -f1 "$RESULTS/results_summary.tsv")"
TARGET="26491"
awk -v actual="$ACTUAL" -v target="$TARGET" \
'BEGIN { print (actual == target) ? "GOOD" : "BAD"; print "Expected: ", target; print "Actual: ", actual; }' \
> "${RESULTS}.report"
1 change: 1 addition & 0 deletions run_regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ run_test EASY_CLUSTER "run_easy_cluster.sh"
run_test EASY_NUCL_CLUSTER "run_easy_nuclcluster.sh"
run_test CLUSTER_REASSIGN "run_easy_cluster_reassign.sh"
run_test LINCLUST "run_linclust.sh"
run_test LINCLUST "run_linclust_adjacent_disabled.sh"
run_test LINCLUST_SPLIT "run_linclust_split.sh"
run_test EASY_LINCLUST "run_easy_linclust.sh"
run_test CLUSTHASH "run_clusthash.sh"
Expand Down

0 comments on commit b9e294a

Please sign in to comment.