-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmake.sbatch
executable file
·59 lines (44 loc) · 1.61 KB
/
smake.sbatch
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
54
55
56
57
58
59
#!/bin/bash
#
#SBATCH --job-name=cobra-dgrp
#SBATCH --ntasks=1
#SBATCH --partition=compute
#SBATCH --time=30-00:00:00
#SBATCH --mem=6gb
#SBATCH --output=/data2/morgante_lab/nklimko/rep/dgrp-starve/snake/logs/00_cobra/%j
#Set output above to snake/logs/{foldername of choice}
#this file submits jobs to slurm. Recommended to run submit snake.sbatch first to ensure desired rules are rerun
#Choose snakefile by uncommenting: start with datafile to process starvation
#sfile="code/snakefiles/datafile.yaml"
#sfile="code/snakefiles/srfile.yaml"
#sfile="code/snakefiles/GOfile.yaml"
#sfile="code/snakefiles/sparsefile.yaml"
#sfile="code/snakefiles/genefile.yaml"
#sfile="code/snakefiles/figfile.yaml"
#sfile="code/snakefiles/tiffile.yaml"
#sfile="code/snakefiles/startlefile.yaml"
sfile="code/snakefiles/startleGO.yaml"
#sfile="code/snakefiles/nnfile.yaml"
#sfile="code/snakefiles/startle_figfile.yaml"
#set working directory
cd /data2/morgante_lab/nklimko/rep/dgrp-starve
#mkdir -p ./{log,logs_slurm}
#source conda/mamba and activate snakemake
source /data2/morgante_lab/nklimko/software/miniconda3/etc/profile.d/conda.sh
source /data2/morgante_lab/nklimko/software/mambaforge-pypy3/etc/profile.d/mamba.sh
mamba activate snakemake
module load R/4.1.2
#Set linear algebra to single thread
export OPENBLAS_NUM_THREADS=1
export OMP_NUM_THREADS=1
#Include personal R packages
export R_LIBS=/data2/morgante_lab/nklimko/software/R/x86_64-pc-linux-gnu-library/4.1
#snakemake -s $sfile -q -n --dag | dot | display
snakemake \
-s $sfile \
--profile snake/slurm \
--nolock \
--jobs 300 \
--rerun-triggers mtime
module unload R/4.1.2
mamba deactivate