-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlaunch.sh
More file actions
34 lines (27 loc) · 819 Bytes
/
launch.sh
File metadata and controls
34 lines (27 loc) · 819 Bytes
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
#!/bin/sh
#
#SBATCH --verbose
#SBATCH --time=168:00:00
#SBATCH --nodes=1
#SBATCH --tasks-per-node=1
#SBATCH --cpus-per-task=6
#SBATCH --mem=10000
#SBATCH --mail-user=netID@nyu.edu
module purge
module load nextflow/23.04.1
run_dir_path=$1
fcid=$2
entry=$3
log_dir="/scratch/gencore/GENEFLOW/alpha/logs/${fcid}/pipeline"
nextflow_command="nextflow \
-log ${log_dir}/nextflow.log run /home/gencore/SCRIPTS/GENEFLOW/main.nf \
-c /home/gencore/SCRIPTS/GENEFLOW/nextflow.config \
--run_dir_path $run_dir_path \
--trace_file_path ${log_dir}/trace.txt \
-with-report ${log_dir}/${fcid}_report.html"
# Check if the third parameter (entry point) is provided and append to the command
if [ ! -z "$entry" ]; then
nextflow_command="$nextflow_command -entry $entry"
fi
# Execute the command
eval $nextflow_command