-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
61 lines (45 loc) · 1.47 KB
/
Makefile
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
60
61
#
# This is the main Makefile for constructing RASE databases. It specifies the
# order in which individual subdirectories with own Makefiles will be invoked.
# This file is to be symlinked.
#
# Author: Karel Brinda <[email protected]>
#
# License: MIT
#
DIRS=tree isolates resistance index _output published unpublished
ALLDIRS=$(DIRS) plots
.PHONY: data cluster plots $(DIRS) output
include init.mk
include conf.mk
all: $(DIRS)
data: published unpublished ## Prepare published and unpublished data
tree: data ## Prepare phylogenetic tree
$(MAKE) -C tree tree
isolates: data ## Download isolates
$(MAKE) -C isolates isolates
resistance: tree data ## Process resistance data
$(MAKE) -C resistance resistance
plots: ## Generate plots
$(MAKE) -C plots plots
index: tree isolates ## Construct ProPhyle k-mer index
$(MAKE) -C index index
output: _output ## Copy database files to _output
_output: index resistance
$(MAKE) -C _output _output
published: ## Download and process published data
$(MAKE) -C published published
unpublished: ## Verify that unpublished data were properly copied
$(MAKE) -C unpublished unpublished
cluster: ## Submit RASE DB construction to cluster
snakemake --cores 9999 -p \
--cluster-config ../cluster.json \
--cluster 'sbatch -p {cluster.queue} -n {cluster.n} -t {cluster.time} --mem={cluster.memory}'
clean:
for x in $(ALLDIRS); do \
$(MAKE) -C $$x clean; \
done
cleanall:
for x in $(ALLDIRS); do \
$(MAKE) -C $$x cleanall; \
done