-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslurm.sh
40 lines (33 loc) · 1.09 KB
/
slurm.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# ********************************************************
#--- slurm commands ---
# ********************************************************
#SBATCH --job-name=bcftools
#SBATCH --partition=longrun # partition to submit to, e.g. debug, longrun
#SBATCH --time=06:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=20
#SBATCH --mem=20G
#SBATCH --output=job.%j.out
#SBATCH --error=job.%j.err
#SBATCH --mail-type=ALL
#SBATCH --mail-user='' # email address
# ********************************************************
# activate conda environment
# ********************************************************
source "${HOME}/miniforge3/etc/profile.d/conda.sh"
conda activate snakemake
# ********************************************************
#--- snakemake commands ---
# ********************************************************
snakemake --unlock
snakemake \
--use-conda \
--conda-frontend mamba \
--cores 4 \
--jobs 2 \
--rerun-incomplete
# ********************************************************
#--- end ---
# ********************************************************
conda deactivate