-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_Snakebite-miRNA.sh
executable file
·26 lines (22 loc) · 1.35 KB
/
run_Snakebite-miRNA.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
pipelineFolder="/users/fischerd/git/Snakebite-miRNA"
projectFolder="/scratch/project_2001310/TestProject"
# This conda module is just to make snakemake available
module load snakemake
# Here are the tmp folder for Apptainer/Singularity/Docker defined, depends on your system
export APPTAINER_TMPDIR="/scratch/project_2001310/tmp"
export APPTAINER_CACHEDIR="/scratch/project_2001310/tmp"
snakemake -s $pipelineFolder/Snakebite-miRNA.smk \
--configfile $projectFolder/Snakebite-miRNA_config.yaml \
--cluster-config $projectFolder/Snakebite-miRNA_server-config.yaml \
--forceall --rulegraph | dot -T png > $projectFolder/workflow.png
snakemake -s $pipelineFolder/Snakebite-miRNA.smk \
-j 200 \
--latency-wait 60 \
--use-singularity \
--singularity-args "-B /scratch,/projappl,/users,/dev/shm:/tmp" \
--configfile $projectFolder/Snakebite-miRNA_config.yaml \
--cluster-config $projectFolder/Snakebite-miRNA_server-config.yaml \
--cluster "sbatch -t {resources.time} --account={cluster.account} --gres=nvme:{cluster.nvme} --job-name={cluster.job-name} --tasks-per-node={cluster.ntasks} --cpus-per-task={threads} --mem-per-cpu={resources.mem} -p {cluster.partition} -D {cluster.working-directory}" \
--scheduler greedy \
--cluster-cancel scancel \
$@