-
Notifications
You must be signed in to change notification settings - Fork 1
/
pfr_prepngs
49 lines (43 loc) · 987 Bytes
/
pfr_prepngs
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
44
45
46
47
48
49
#!/bin/bash -e
#SBATCH --job-name PREPNGS
#SBATCH --time=12:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --output pfr_prepngs.stdout
#SBATCH --error pfr_prepngs.stderr
#SBATCH --mem=4G
full_test_flag=0
# Parse command line options
while getopts "t" opt; do
case ${opt} in
t )
full_test_flag=1
;;
\? )
echo "Invalid option: $OPTARG" 1>&2
exit 1
;;
esac
done
shift $((OPTIND -1))
ml unload perl
ml apptainer/1.1
ml nextflow/23.04.4
export TMPDIR="/workspace/$USER/tmp"
export APPTAINER_BINDPATH="$APPTAINER_BINDPATH,$TMPDIR:$TMPDIR,$TMPDIR:/tmp"
if [ $full_test_flag -eq 1 ]; then
nextflow \
main.nf \
-c pfr/profile.config \
-profile pfr,apptainer,test_full \
--outdir ./results \
-resume
else
nextflow \
main.nf \
-c pfr/profile.config \
-profile pfr,apptainer \
-params-file pfr/params.json \
-resume
fi