Skip to content

Commit

Permalink
feat: update regression results
Browse files Browse the repository at this point in the history
  • Loading branch information
leejoey0921 committed Sep 2, 2024
1 parent 5e3bc17 commit 6a2df6b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion regression/run_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion regression/run_cluster_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
2 changes: 1 addition & 1 deletion regression/run_easy_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion regression/run_easy_cluster_reassign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion regression/run_easy_linclust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion regression/run_linclust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion regression/run_linclust_split.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6a2df6b

Please sign in to comment.