Skip to content

Commit 3e31cf1

Browse files
committed
Disable warnings for createsubdb in clusterupdate
1 parent e7f5852 commit 3e31cf1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

data/workflow/update_clustering.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if [ -s "${TMP_PATH}/removedSeqs" ]; then
9696
else
9797
if notExists "${TMP_PATH}/REMOVEDMEMBERS.dbtype"; then
9898
# shellcheck disable=SC2086
99-
"$MMSEQS" createsubdb "${TMP_PATH}/removedSeqs" "${OLDCLUST}" "${TMP_PATH}/REMOVEDMEMBERS" --subdb-mode 0 ${VERBOSITY} \
99+
"$MMSEQS" createsubdb "${TMP_PATH}/removedSeqs" "${OLDCLUST}" "${TMP_PATH}/REMOVEDMEMBERS" --subdb-mode 0 ${NOWARNINGS_PAR} \
100100
|| fail "createsubdb died"
101101
fi
102102

@@ -115,7 +115,7 @@ if [ -s "${TMP_PATH}/removedSeqs" ]; then
115115

116116
if notExists "${TMP_PATH}/OLCLUST.withoutDeletedKeys.dbtype"; then
117117
# shellcheck disable=SC2086
118-
"$MMSEQS" createsubdb "${TMP_PATH}/mappingSeqs" "${OLDCLUST}" "${TMP_PATH}/OLCLUST.withoutDeletedKeys" --subdb-mode 1 ${VERBOSITY} \
118+
"$MMSEQS" createsubdb "${TMP_PATH}/mappingSeqs" "${OLDCLUST}" "${TMP_PATH}/OLCLUST.withoutDeletedKeys" --subdb-mode 1 ${NOWARNINGS_PAR} \
119119
|| fail "createsubdb died"
120120
fi
121121

src/workflow/ClusterUpdate.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ int clusterupdate(int argc, const char **argv, const Command& command) {
5656
cmd.addVariable("RUNNER", par.runner.c_str());
5757
cmd.addVariable("DIFF_PAR", par.createParameterString(par.diff).c_str());
5858
cmd.addVariable("VERBOSITY", par.createParameterString(par.onlyverbosity).c_str());
59+
60+
int oldVerbosity = par.verbosity;
61+
par.verbosity = std::min(par.verbosity, 1);
62+
cmd.addVariable("NOWARNINGS_PAR", par.createParameterString(par.onlyverbosity).c_str());
63+
par.verbosity = oldVerbosity;
64+
5965
cmd.addVariable("THREADS_PAR", par.createParameterString(par.onlythreads).c_str());
6066
cmd.addVariable("RESULT2REPSEQ_PAR", par.createParameterString(par.result2repseq).c_str());
6167

0 commit comments

Comments
 (0)