-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_snakemake.sh
29 lines (22 loc) · 993 Bytes
/
run_snakemake.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
#!/bin/bash
#SBATCH --ntasks=2
#SBATCH --mem=10gb
#SBATCH --time=24:00:00
source ~/.bashrc
source activate pm_env
cd $SLURM_SUBMIT_DIR
#cd /xdisk/bhurwitz/mig2020/rsgrps/bhurwitz/planet-microbe-functional-annotation
if [ -f results/interproscan.txt ]; then
echo "removing interproscan.txt"
rm results/interproscan.txt
fi
if [ -f results/killed_interproscan.txt ]; then
echo "removing killed_interproscan.txt"
rm results/killed_interproscan.txt
fi
#dry run
#snakemake -n
snakemake --unlock
echo 'snakemake --cluster "sbatch -A {cluster.group} -p {cluster.partition} -n {cluster.n} -t {cluster.time} -N {cluster.N} -mem={cluster.m} -e {cluster.e} -o {cluster.o}" --cluster-config config/cluster.yml -j 30 --latency-wait 30'
#run in cluster
snakemake --cluster "sbatch -A {cluster.group} -p {cluster.partition} -n {cluster.n} -t {cluster.time} -N {cluster.N} --mem={cluster.m} -e {cluster.e} -o {cluster.o}" --cluster-config config/cluster.yml -j 30 --latency-wait 30