Makefile 2.59 KB
Newer Older
LANORE Vincent's avatar
LANORE Vincent committed
1 2 3 4
# -----------------------------------------------------------------------
#   Build and install things
# -----------------------------------------------------------------------
.PHONY: build
Philippe Veber's avatar
Philippe Veber committed
5 6 7
build:
	jbuilder build

LANORE Vincent's avatar
LANORE Vincent committed
8
.PHONY: install
Philippe Veber's avatar
Philippe Veber committed
9 10
install:
	jbuilder install
11

LANORE Vincent's avatar
LANORE Vincent committed
12
.PHONY: build_docker
13
build_docker:
14
	@for dir in ./etc/docker/*; \
15 16 17
	do\
		cd $${dir}; \
		bash ./build_docker.sh; \
Carine Rey's avatar
Carine Rey committed
18
		cd - ; \
19 20
	done

LANORE Vincent's avatar
LANORE Vincent committed
21
.PHONY: push_docker
22
push_docker:
23
	@for dir in ./etc/docker/*; \
24 25 26
	do\
		cd $${dir}; \
		bash ./build_docker.sh push_yes; \
Carine Rey's avatar
Carine Rey committed
27
		cd - ; \
28
	done
Carine Rey's avatar
Carine Rey committed
29

LANORE Vincent's avatar
LANORE Vincent committed
30 31 32 33
# -----------------------------------------------------------------------
#   Tests and experiments
# -----------------------------------------------------------------------
.PHONY: test_simu
34
test_simu:
Carine Rey's avatar
Carine Rey committed
35
	cd example && \
36
	reviewphiltrans simulation --outdir outdir --tree-dir trees --profile-fn aa_fitness/tiragesBloomK30.tsv --preview --np 4 && \
37 38
	mv dag.dot dagtest_sim.dot && \
	dot -Tsvg dagtest_sim.dot -o dagtest_sim.svg
39

LANORE Vincent's avatar
LANORE Vincent committed
40
.PHONY: test_det
41 42
test_det:
	cd example && \
43
	reviewphiltrans detection --outdir outdir/detection --indir outdir/data --preview --np 4 && \
44 45
	mv dag.dot dagtest_det.dot && \
	dot -Tsvg dagtest_det.dot -o dagtest_det.svg
Carine Rey's avatar
Carine Rey committed
46

LANORE Vincent's avatar
LANORE Vincent committed
47
.PHONY: test_val
Carine Rey's avatar
Carine Rey committed
48 49 50 51 52 53
test_val:
	cd example && \
	reviewphiltrans validation --outdir outdir_validation --indir real_data --tree-dir trees --profile-fn aa_fitness/tiragesBloomK30.tsv --preview --np 4 && \
	mv dag.dot dagtest_val.dot && \
	dot -Tsvg dagtest_val.dot -o dagtest_val.svg

LANORE Vincent's avatar
LANORE Vincent committed
54
.PHONY: real
Carine Rey's avatar
Carine Rey committed
55
real:
Carine Rey's avatar
Carine Rey committed
56
	cd example && \
Carine Rey's avatar
Carine Rey committed
57
	reviewphiltrans detection --outdir outdir_real_data --indir real_data --preview --np 4 && \
Carine Rey's avatar
Carine Rey committed
58 59 60
	mv dag.dot dagtest_real.dot && \
	dot -Tpdf dagtest_real.dot -o dagtest_real.pdf

LANORE Vincent's avatar
LANORE Vincent committed
61
.PHONY: analyses_30Bloom
Carine Rey's avatar
Carine Rey committed
62
analyses_30Bloom:
Carine Rey's avatar
Carine Rey committed
63
	cd example && \
Carine Rey's avatar
Carine Rey committed
64 65
	reviewphiltrans validation --outdir outdir_analyses_tiragesBloomK30 --tree-dir trees4analyses --profile-fn aa_fitness/tiragesBloomK30.tsv --np 4 && \
	mv dag.dot daganalyses_tiragesBloomK30.dot
Carine Rey's avatar
Carine Rey committed
66

LANORE Vincent's avatar
LANORE Vincent committed
67
.PHONY: analyses_263Bloom
Carine Rey's avatar
Carine Rey committed
68
analyses_263Bloom:
Carine Rey's avatar
Carine Rey committed
69
	cd example && \
Carine Rey's avatar
Carine Rey committed
70 71
	reviewphiltrans validation --outdir outdir_analyses_263SelectedProfiles --tree-dir trees4analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 4 && \
	mv dag.dot daganalyses_263SelectedProfiles.dot
Carine Rey's avatar
Carine Rey committed
72

LANORE Vincent's avatar
LANORE Vincent committed
73 74 75 76 77 78 79 80 81 82
# -----------------------------------------------------------------------
#   Cleaning and formatting
# -----------------------------------------------------------------------
.PHONY: clean
clean:
	rm -rf _build
	rm -rf example/_bistro
	rm -rf example/outdir

.PHONY: clean_test
Carine Rey's avatar
Carine Rey committed
83
clean_test:
84 85 86 87
	rm -rf example/_bistro
	rm -rf example/outdir
	rm -rf example/report.log
	rm -rf example/dot.dag
88

LANORE Vincent's avatar
LANORE Vincent committed
89
.PHONY: format
90 91
format:
	ocp-indent -i lib/*.ml lib/*.mli app/*.ml