-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·43 lines (35 loc) · 1.14 KB
/
test.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
instance_name="GOMAP-Base"
img_loc="$PWD/$instance_name.sif"
mkdir -p $PWD/tmp
unset SINGULARITY_TMPDIR
# export TMPDIR="$PWD/tmpdir"
if [ ! -f "$img_loc" ]
then
echo "The ${instance_name} image is missing"
singularity pull $img_loc shub://Dill-PICL/GOMAP-base > /dev/null
fi
if [ -z $tmpdir ]
then
tmpdir=${TMPDIR:-$PWD/tmp}
fi
export SINGULARITY_BINDPATH="$PWD:/workdir,$tmpdir:/tmpdir,GOMAP:/opt/GOMAP"
echo "$SINGULARITY_BINDPATH"
echo "$@"
if [[ $# -eq 1 ]]
then
singularity run \
-W $PWD/tmp \
$img_loc \
--step=$1 --config=test/config.yml
else
singularity run -c $img_loc --step=seqsim --config=test/config.yml && \
singularity run -c $img_loc --step=domain --config=test/config.yml && \
singularity run -c $img_loc --step=fanngo --config=test/config.yml && \
singularity run -c $img_loc --step=mixmeth-blast --config=test/config.yml && \
singularity run -c $img_loc --step=mixmeth-preproc --config=test/config.yml && \
singularity run -c $img_loc --step=mixmeth --config=test/config.yml && \
sleep 60 && \
singularity run -c $img_loc --step=aggregate --config=test/config.yml && \
test/check_results.sh
fi