-
Notifications
You must be signed in to change notification settings - Fork 5
/
pfr_assemblyqc
53 lines (47 loc) · 1.21 KB
/
pfr_assemblyqc
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
51
52
53
#!/bin/bash -e
#SBATCH --job-name ASMQC
#SBATCH --time=7-00:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --output pfr_assemblyqc.stdout
#SBATCH --error pfr_assemblyqc.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/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 \
--ncbi_fcs_gx_skip false \
--ncbi_fcs_gx_db_path "/workspace/ComparativeDataSources/NCBI/FCS/GX/r2023-01-24" \
--kraken2_skip false \
--kraken2_db_path "/workspace/ComparativeDataSources/kraken2db/k2_pluspfp_20240904" \
-resume \
--outdir results
else
nextflow \
main.nf \
-c pfr/profile.config \
-profile pfr,apptainer \
-params-file pfr/params.json \
-resume
fi