-
Notifications
You must be signed in to change notification settings - Fork 5
/
pfr_genepal
50 lines (43 loc) · 1.03 KB
/
pfr_genepal
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
50
#!/bin/bash -e
#SBATCH --job-name GENEPAL
#SBATCH --time=14-00:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --output pfr_genepal.stdout
#SBATCH --error pfr_genepal.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 apptainer/1.1
ml nextflow/24.04.3
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 \
-resume \
--eggnogmapper_db_dir "/workspace/ComparativeDataSources/emapperdb/5.0.2" \
--outdir results
else
nextflow \
main.nf \
-c pfr/profile.config \
-profile pfr,apptainer \
-params-file pfr/params.json \
-resume
fi