Skip to content

Commit

Permalink
Add ungappedprefilter to it. profile searches
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Aug 11, 2024
1 parent 16dc915 commit bde99a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions data/structureiterativesearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ while [ "$STEP" -lt "$NUM_IT" ]; do
if notExists "$TMP_PATH/pref_tmp_${STEP}.done"; then
PARAM="PREFILTER_PAR_$STEP"
eval TMP="\$$PARAM"
TOOL="prefilter"
if [ "$PREFMODE" = "UNGAPPED" ]; then
TOOL="ungappedprefilter"
PARAM="UNGAPPEDPREFILTER_PAR_$STEP"
eval TMP="\$$PARAM"
fi
if [ $STEP -eq 0 ]; then
# shellcheck disable=SC2086
$RUNNER "$MMSEQS" prefilter "${QUERYDB}_ss" "${TARGET_PREFILTER}${INDEXEXT}" "$TMP_PATH/pref_${STEP}" ${TMP} \
$RUNNER "$MMSEQS" $TOOL "${QUERYDB}_ss" "${TARGET_PREFILTER}${INDEXEXT}" "$TMP_PATH/pref_${STEP}" ${TMP} \
|| fail "Prefilter died"
else
# shellcheck disable=SC2086
$RUNNER "$MMSEQS" prefilter "${QUERYDB}_ss" "${TARGET_PREFILTER}${INDEXEXT}" "$TMP_PATH/pref_tmp_${STEP}" ${TMP} \
$RUNNER "$MMSEQS" $TOOL "${QUERYDB}_ss" "${TARGET_PREFILTER}${INDEXEXT}" "$TMP_PATH/pref_tmp_${STEP}" ${TMP} \
|| fail "Prefilter died"
fi
touch "$TMP_PATH/pref_tmp_${STEP}.done"
Expand Down
2 changes: 2 additions & 0 deletions src/workflow/StructureSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ int structuresearch(int argc, const char **argv, const Command &command) {
par.compBiasCorrectionScale = 0.15;
cmd.addVariable(std::string("PREFILTER_PAR_" + SSTR(i)).c_str(),
par.createParameterString(par.prefilter).c_str());
cmd.addVariable(std::string("UNGAPPEDPREFILTER_PAR_" + SSTR(i)).c_str(),
par.createParameterString(par.ungappedprefilter).c_str());
par.compBiasCorrectionScale = 0.5;
if(par.alignmentType == LocalParameters::ALIGNMENT_TYPE_3DI){
cmd.addVariable(std::string("ALIGNMENT_PAR_" + SSTR(i)).c_str(), par.createParameterString(par.align).c_str());
Expand Down

0 comments on commit bde99a7

Please sign in to comment.