-
Notifications
You must be signed in to change notification settings - Fork 1
/
snakecharmer.sh
50 lines (41 loc) · 1.31 KB
/
snakecharmer.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
41
42
43
44
45
46
47
48
49
50
#! /usr/bin/env bash
#BSUB -J tf_binding
#BSUB -o logs/tf_binding_%J.out
#BSUB -e logs/tf_binding_%J.err
#BSUB -R "select[mem>4] rusage[mem=4]"
#BSUB -q rna
set -o nounset -o pipefail -o errexit -x
mkdir -p logs
module load meme
module load bedtools
#config_file=src/configs/ca_targets_all_tfs_human.yaml
#config_file=src/configs/ca_targets_all_tfs_mouse.yaml
#config_file=src/configs/ca_targets_ca_tfs_human.yaml
#config_file=src/configs/ca_targets_ca_tfs_mouse.yaml
#config_file=src/configs/nfat_targets_all_tfs.yaml
#config_file=src/configs/nfat_targets_nfat_tfs.yaml
#config_file=src/configs/nfat_gd_gfk_targets_all_tfs.yaml
#config_file=src/configs/nfat_gd_gfk_targets_nfat_tfs.yaml
#config_file=src/configs/nfat_g_gd_targets_all_tfs.yaml
#config_file=src/configs/nfat_g_gd_targets_nfat_tfs.yaml
config_file=src/configs/nfat_targets_ca_tfs.yaml
# Function to run snakemake
run_snakemake() {
local num_jobs=$1
local config_file=$2
args='
-o {log}.out
-e {log}.err
-J {params.job_name}
-R "{params.memory} span[hosts=1] "
-n {threads}
-q rna '
snakemake \
--snakefile Snakefile \
--drmaa "$args" \
--jobs $num_jobs \
--latency-wait 60 \
--rerun-incomplete \
--configfile $config_file
}
run_snakemake 12 $config_file