Skip to content

Commit

Permalink
Added option to use or not use raw ranks for jury on relaxed models.
Browse files Browse the repository at this point in the history
  • Loading branch information
kliment-olechnovic committed Aug 29, 2023
1 parent 0db6935 commit abaa022
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ftdmp-all
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Options:
--build-complexes number number of top complexes to build, default is 0
--multiply-chains string options to multiply chains, default is ''
--relax-complexes string options to relax complexes, default is ''
--all-ranks-for-relaxed string flag to use both scoring ranks of both raw and relaxed structures, default is 'true'
--only-dock-and-score string flag to only dock, score and quit after scoring, default is 'false'
--diversify number step of CAD-score to diversify scoring results and exit, default is ''
--plot-jury-scores string flag to output plot of jury scores, default is 'false'
Expand Down Expand Up @@ -169,6 +170,7 @@ NUMBER_OF_COMPLEXES_TO_BUILD="0"
REDUNDANCY_THRESHOLD="0.9"
MULTIPLY_CHAINS=""
RELAX_COMPLEXES=""
ALL_RANKS_FOR_RELAXED="true"
ONLY_DOCK_AND_SCORE="false"
DIVERSIFY=""
PLOT_JURY_SCORES="false"
Expand Down Expand Up @@ -405,6 +407,10 @@ do
RELAX_COMPLEXES="$OPTARG"
shift
;;
--all-ranks-for-relaxed)
ALL_RANKS_FOR_RELAXED="$OPTARG"
shift
;;
--only-dock-and-score)
ONLY_DOCK_AND_SCORE="$OPTARG"
shift
Expand Down Expand Up @@ -679,7 +685,7 @@ fi

EXTRA_SCORING_RANKS="$(echo ${EXTRA_SCORING_RANKS} | tr '\n' ' ' | sed 's/\s\+/ /g' | sed 's/^\s\+//' | sed 's/\s\+$//')"

if [ "$EXTRA_SCORING_RANKS" != "all_plugin" ]
if [ -n "$EXTRA_SCORING_RANKS" ] && [ "$EXTRA_SCORING_RANKS" != "all_plugin" ]
then
SCORING_RANKS="${SCORING_RANKS} ${EXTRA_SCORING_RANKS}"
fi
Expand Down Expand Up @@ -1188,7 +1194,10 @@ echo >&2 "ftdpm-all: running ftdmp-all-jury for scored relaxed complexes"

RELAXED_SCORING_RANKS="$(echo "$SCORING_RANKS" | sed 's/\s\+/\n/g' | sed 's/^raw_/relaxed_/' | tr '\n' ' ')"

RELAXED_SCORING_RANKS="$SCORING_RANKS $RELAXED_SCORING_RANKS"
if [ "$ALL_RANKS_FOR_RELAXED" == "true" ]
then
RELAXED_SCORING_RANKS="$SCORING_RANKS $RELAXED_SCORING_RANKS"
fi

echo "$RELAXED_SCORING_RANKS" | tr ' ' '\n' > "${OUTPUT_PATH}/relaxed_used_scoring_ranks_names.txt"

Expand Down
1 change: 1 addition & 0 deletions tests/protein_na_docking_alt/run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ ${FTDMPDIR}/ftdmp-all \
--build-complexes 200 \
--openmm-forcefield "amber14-all-no-water" \
--relax-complexes "--max-iterations 0 --force-cuda --focus whole_interface" \
--all-ranks-for-relaxed 'true' \
--plot-jury-scores 'true' \
--reference "./input/6FPQ_reference.pdb" \
--cache-dir "./output/docking/cache"
Expand Down

0 comments on commit abaa022

Please sign in to comment.