Skip to content

Commit

Permalink
Ensure consistency in behaviour between normal and singularity scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesabbott committed May 25, 2023
1 parent 355c3d8 commit 9dbac03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions run_colabfold.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ fi

echo "Hostname: $HOSTNAME"
echo "GPU: $CUDA_VISIBLE_DEVICES"
echo "Command line: 'colabfold_batch ${colabfold_args_list[@]} ${input} colabfold_outputs"
echo "Command line: colabfold_batch ${colabfold_args_list[@]} ${input} ${input_dir}/colabfold_outputs"

input_dir=$(dirname $input)

TF_CPP_MIN_LOG_LEVEL=2
colabfold_batch ${colabfold_args_list[@]} ${input} colabfold_outputs
colabfold_batch ${colabfold_args_list[@]} ${input} ${input_dir}/colabfold_outputs

3 changes: 2 additions & 1 deletion run_colabfold_singularity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ fasta_file=$(basename $input)

echo "Hostname: $HOSTNAME"
echo "GPU: $CUDA_VISIBLE_DEVICES"
echo "Command line: colabfold_batch ${colabfold_args_list[@]} ${input} colabfold_outputs"
# This is a bit of a lie, but is the effective command run taking bind mounts into account...
echo "Command line: colabfold_batch ${colabfold_args_list[@]} ${input} ${input_dir}/colabfold_outputs"

export TF_CPP_MIN_LOG_LEVEL=2
singularity exec --nv -B ${input_dir}:/mnt ${image} \
Expand Down

0 comments on commit 9dbac03

Please sign in to comment.