Skip to content

Commit

Permalink
Added export LC_ALL=C in bash wrappers to avoid sort/join errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
kliment-olechnovic committed Nov 13, 2022
1 parent a9436c3 commit 03b5fbf
Show file tree
Hide file tree
Showing 16 changed files with 100 additions and 64 deletions.
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-fast-iface-cadscore
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ fi

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

TARGET_INFILE=""
Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-fast-iface-cadscore-matrix
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ ALLARGS=("$@")

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

RESTRICT_INPUT="[]"
Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-fast-iface-data-graph
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ fi

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

INFILE=""
Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-fast-iface-voromqa
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ fi

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

INFILE=""
Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-iface-visualize
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ ALLARGS=("$@")

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }
command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }

Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-ifeatures-voromqa
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ ALLARGS=("$@")

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

INFILE=""
Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-ligand-cadscore
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ fi

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

TARGET_RECEPTOR=""
Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-membrane-voromqa
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ ALLARGS=("$@")

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

INFILE=""
Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-only-global-voromqa
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ fi

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

INFILE=""
Expand Down
6 changes: 4 additions & 2 deletions expansion_js/voronota-js-voromqa
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ ALLARGS=("$@")

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota-js &> /dev/null || { echo >&2 "Error: 'voronota-js' executable not in binaries path"; exit 1; }

INFILE=""
Expand Down
23 changes: 13 additions & 10 deletions voronota-cadscore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ exit 1
}

readonly ZEROARG=$0

if [[ $ZEROARG == *"/"* ]]
then
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }

INFILE_TARGET_PDB=""
INFILE_MODEL_PDB=""
INPUT_FILTER_QUERY_PARAMETERS=""
Expand Down Expand Up @@ -170,16 +183,6 @@ then
print_help_and_exit
fi

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd - &> /dev/null
fi

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }

MD5SUM_COMMAND="md5sum"
if command -v md5sum &> /dev/null
then
Expand Down
23 changes: 13 additions & 10 deletions voronota-contacts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ exit 1
}

readonly ZEROARG=$0

if [[ $ZEROARG == *"/"* ]]
then
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }

INFILE=""
INPUT_FILTER_QUERY_PARAMETERS=""
CONTACTS_QUERY_FIRST_PARAMETERS="--match-min-seq-sep 1"
Expand Down Expand Up @@ -110,16 +123,6 @@ then
print_help_and_exit
fi

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd - &> /dev/null
fi

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }

if $USE_HBPLUS
then
command -v hbplus &> /dev/null || { echo >&2 "Warning: 'hbplus' executable not in binaries path, thus no 'hb' tags will be assigned"; USE_HBPLUS=false; }
Expand Down
6 changes: 4 additions & 2 deletions voronota-membrane
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ readonly ZEROARG=$0

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }
command -v jq &> /dev/null || { echo >&2 "Error: 'jq' executable not in binaries path"; exit 1; }
Expand Down
6 changes: 4 additions & 2 deletions voronota-pocket
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ readonly ZEROARG=$0

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }
command -v jq &> /dev/null || { echo >&2 "Error: 'jq' executable not in binaries path"; exit 1; }
Expand Down
23 changes: 13 additions & 10 deletions voronota-volumes
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ exit 1
}

readonly ZEROARG=$0

if [[ $ZEROARG == *"/"* ]]
then
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }

INFILE=""
INPUT_FILTER_QUERY_PARAMETERS=""
ATOMS_QUERY_PARAMETERS=""
Expand Down Expand Up @@ -82,16 +95,6 @@ then
print_help_and_exit
fi

if [[ $ZEROARG == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd - &> /dev/null
fi

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }

MD5SUM_COMMAND="md5sum"
if command -v md5sum &> /dev/null
then
Expand Down
23 changes: 13 additions & 10 deletions voronota-voromqa
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,19 @@ function substitute_ids_in_filename

readonly ZEROARG=$0
ALLARGS=("$@")

if [[ $ZEROARG == *"/"* ]]
then
cd "$(dirname ${ZEROARG})"
export PATH="$(pwd):${PATH}"
cd - &> /dev/null
fi

export LC_ALL=C

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }

INFILE=""
REFERENCE_SEQUENCE=""
INPUT_FILTER_QUERY_PARAMETERS=""
Expand Down Expand Up @@ -648,16 +661,6 @@ then
PRINT_GLOBAL_SCORES_HEADER=true
fi

if [[ "$ZEROARG" == *"/"* ]]
then
cd $(dirname $ZEROARG)
export PATH=$(pwd):$PATH
cd - &> /dev/null
fi

command -v voronota &> /dev/null || { echo >&2 "Error: 'voronota' executable not in binaries path"; exit 1; }
command -v voronota-resources &> /dev/null || { echo >&2 "Error: 'voronota-resources' executable not in binaries path"; exit 1; }

MD5SUM_COMMAND="md5sum"
if command -v md5sum &> /dev/null
then
Expand Down

0 comments on commit 03b5fbf

Please sign in to comment.