From 6a2df6bd0d54975813cf2f1424e296a55271cfcc Mon Sep 17 00:00:00 2001 From: Joey Lee Date: Mon, 2 Sep 2024 13:00:17 +0900 Subject: [PATCH] feat: update regression results --- regression/run_cluster.sh | 2 +- regression/run_cluster_update.sh | 2 +- regression/run_easy_cluster.sh | 2 +- regression/run_easy_cluster_reassign.sh | 2 +- regression/run_easy_linclust.sh | 2 +- regression/run_linclust.sh | 2 +- regression/run_linclust_split.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/regression/run_cluster.sh b/regression/run_cluster.sh index 34159cf..10b407b 100755 --- a/regression/run_cluster.sh +++ b/regression/run_cluster.sh @@ -8,7 +8,7 @@ CLUDB="${RESULTS}/clu" 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="15722" +TARGET="15710" awk -v actual="$ACTUAL" -v target="$TARGET" \ 'BEGIN { print (actual == target) ? "GOOD" : "BAD"; print "Expected: ", target; print "Actual: ", actual; }' \ > "${RESULTS}.report" diff --git a/regression/run_cluster_update.sh b/regression/run_cluster_update.sh index 5c1c6c2..8b50906 100755 --- a/regression/run_cluster_update.sh +++ b/regression/run_cluster_update.sh @@ -17,7 +17,7 @@ CLUSTERMEMEBER=$(wc -l "$RESULTS/clu_updated.tsv" | awk '{print $1}') CLUSTER=$(echo $(cut -f1 "$RESULTS/clu_updated.tsv" | sort -u | wc -l)) UPDATEDSEQCNT=$(wc -l "$RESULTS/seqdb_update.index" | awk '{print $1}') -TARGET="32132 24753 32132" +TARGET="32132 24742 32132" ACTUAL="$CLUSTERMEMEBER $CLUSTER $UPDATEDSEQCNT" awk -v actual="$ACTUAL" -v target="$TARGET" 'BEGIN { print (actual == target) ? "GOOD" : "BAD"; \ print "Expected: ", target; \ diff --git a/regression/run_easy_cluster.sh b/regression/run_easy_cluster.sh index 8cc986c..9e97437 100755 --- a/regression/run_easy_cluster.sh +++ b/regression/run_easy_cluster.sh @@ -3,7 +3,7 @@ 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="15722" +TARGET="15710" awk -v actual="$ACTUAL" -v target="$TARGET" \ 'BEGIN { print (actual == target) ? "GOOD" : "BAD"; print "Expected: ", target; print "Actual: ", actual; }' \ > "${RESULTS}.report" diff --git a/regression/run_easy_cluster_reassign.sh b/regression/run_easy_cluster_reassign.sh index 67a50ba..691a37c 100755 --- a/regression/run_easy_cluster_reassign.sh +++ b/regression/run_easy_cluster_reassign.sh @@ -4,7 +4,7 @@ cat "${DATADIR}/clu.fasta" | "${MMSEQS}" easy-cluster stdin "$RESULTS/results" 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="17257" +TARGET="17248" awk -v actual="$ACTUAL" -v target="$TARGET" \ 'BEGIN { print (actual == target) ? "GOOD" : "BAD"; print "Expected: ", target; print "Actual: ", actual; }' \ > "${RESULTS}.report" diff --git a/regression/run_easy_linclust.sh b/regression/run_easy_linclust.sh index aba13fd..3e5e04a 100755 --- a/regression/run_easy_linclust.sh +++ b/regression/run_easy_linclust.sh @@ -3,7 +3,7 @@ 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="26493" +TARGET="26146" awk -v actual="$ACTUAL" -v target="$TARGET" \ 'BEGIN { print (actual == target) ? "GOOD" : "BAD"; print "Expected: ", target; print "Actual: ", actual; }' \ > "${RESULTS}.report" diff --git a/regression/run_linclust.sh b/regression/run_linclust.sh index 7cfdd29..fd10a4c 100755 --- a/regression/run_linclust.sh +++ b/regression/run_linclust.sh @@ -7,7 +7,7 @@ CLUDB= 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" +TARGET="26135" awk -v actual="$ACTUAL" -v target="$TARGET" \ 'BEGIN { print (actual == target) ? "GOOD" : "BAD"; print "Expected: ", target; print "Actual: ", actual; }' \ > "${RESULTS}.report" diff --git a/regression/run_linclust_split.sh b/regression/run_linclust_split.sh index 3d8c340..b78987b 100755 --- a/regression/run_linclust_split.sh +++ b/regression/run_linclust_split.sh @@ -6,7 +6,7 @@ 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" +TARGET="26135" awk -v actual="$ACTUAL" -v target="$TARGET" \ 'BEGIN { print (actual == target) ? "GOOD" : "BAD"; print "Expected: ", target; print "Actual: ", actual; }' \ > "${RESULTS}.report"