-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.sh
executable file
·38 lines (32 loc) · 1.04 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
#!/usr/bin/env bash
instance_name="GOMAP"
img_loc="$PWD/$instance_name.sif"
mkdir -p $PWD/tmp
unset SINGULARITY_TMPDIR
if [ ! -f "$img_loc" ]
then
echo "The GOMAP image is missing" > /dev/stderr
echo "Please run the setup.sh before running the test" > /dev/stderr
exit 1
fi
if [ -z $tmpdir ]
then
tmpdir=${TMPDIR:-$PWD/tmp}
fi
export SINGULARITY_BINDPATH="$PWD:/workdir,$PWD/tmp:/tmpdir"
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 && \
singularity run -c $img_loc --step=aggregate --config=test/config.yml
fi