-
Notifications
You must be signed in to change notification settings - Fork 0
/
runTest.sh
executable file
·25 lines (21 loc) · 1.48 KB
/
runTest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# Script to run an instance of the fitness provider interactively, i.e., this will lock your terminal until the task is finished.
# Note that the RUN-TEST_tmpl folder contains the output of the DFT calculation.
# This allow to manually intervene to shorten the runtime. Do this:
# 1) kill the job submitted to the queue,
# 2) add the 'GAUSSIAN JOB ENDED' string to the *_DFT.log file (see the *_FProvider.log file to verify what the script is waiting for)
# 3) wait for the sleeping process to wake-up and pick-up the results to produce the fitness file *_FIT.sdf
#
cd ..
rm -rf RUN-TEST
cp -r test/RUN-TEST_tmpl RUN-TEST
# To simulate duplicate in list of UIDs (when using M00000005_I.sdf)
#echo "_Fake_JCMSDGLIPMNPGG-PWDOISHDNA-L" > RUN-TEST/MOLUID.txt
dir="$(pwd)"
# This is a "small" molecule: it takes ca. 10 minutes to run on 40 cpus at saga.sigma2.no
bash Ru_14-el_fitness_BndLng.sh "$dir/RUN-TEST/Gen000/M00000005_I.sdf" "$dir/RUN-TEST/Gen000/M00000005_FIT.sdf" "$dir/RUN-TEST/Gen000" 5 "$dir/RUN-TEST/MOLUID.txt"
# For a larger molecule (takes a bit more than an hour on 40 cpus at saga-sigma2.no)
#bash Ru_14-el_fitness_BndLng.sh "$dir/RUN-TEST/Gen000/M00000002_I.sdf" "$dir/RUN-TEST/Gen000/M00000002_FIT.sdf" "$dir/RUN-TEST/Gen000" 2 "$dir/RUN-TEST/MOLUID.txt"
# A molecule that exists already in the results (super fast)
#bash Ru_14-el_fitness_BndLng.sh "$dir/RUN-TEST/Gen000/M00000231_I.sdf" "$dir/RUN-TEST/Gen000/M00000231_FIT.sdf" "$dir/RUN-TEST/Gen000" 231 "$dir/RUN-TEST/MOLUID.txt"