Makefile 3.97 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
# -----------------------------------------------------------------------
Carine Rey's avatar
Carine Rey committed
31
#   Tests
LANORE Vincent's avatar
LANORE Vincent committed
32 33
# -----------------------------------------------------------------------
.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

Carine Rey's avatar
Carine Rey committed
54 55 56 57 58 59 60 61 62 63 64
# -----------------------------------------------------------------------
#   experiments on real data (only Besnard)
# -----------------------------------------------------------------------

.PHONY: fast_real
fast_real:
	cd example && \
	reviewphiltrans detection --outdir outdir_real_data --indir real_data --fast --np 4 && \
	mv dag.dot dagtest_real.dot && \
	dot -Tpdf dagtest_real.dot -o dagtest_real.pdf

LANORE Vincent's avatar
LANORE Vincent committed
65
.PHONY: real
Carine Rey's avatar
Carine Rey committed
66
real:
Carine Rey's avatar
Carine Rey committed
67
	cd example && \
Carine Rey's avatar
Carine Rey committed
68
	reviewphiltrans detection --outdir outdir_real_data --indir real_data --np 4 && \
Carine Rey's avatar
Carine Rey committed
69 70 71
	mv dag.dot dagtest_real.dot && \
	dot -Tpdf dagtest_real.dot -o dagtest_real.pdf

Carine Rey's avatar
Carine Rey committed
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
# -----------------------------------------------------------------------
#   experiments on threshold choices
# -----------------------------------------------------------------------

.PHONY: analyses_30Bloom_t
analyses_30Bloom_t:
	cd example && \
	reviewphiltrans validation --outdir outdir_analyses_tiragesBloomK30_t --tree-dir trees4analyses --profile-fn aa_fitness/tiragesBloomK30.tsv --np 4 --no-ne --no-hapc --ns 500 && \
	mv dag.dot daganalyses_tiragesBloomK30_t.dot

.PHONY: analyses_263Bloom_t
analyses_263Bloom_t:
	cd example && \
	reviewphiltrans validation --outdir outdir_analyses_263SelectedProfiles_t --tree-dir trees4analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 4 --no-ne --no-hapc --ns 500 && \
	mv dag.dot daganalyses_263SelectedProfiles_t.dot

# -----------------------------------------------------------------------
#   experiments on Ne values choices
# -----------------------------------------------------------------------

.PHONY: analyses_30Bloom_ne
analyses_30Bloom_ne:
Carine Rey's avatar
Carine Rey committed
94
	cd example && \
Carine Rey's avatar
Carine Rey committed
95 96
	reviewphiltrans validation --outdir outdir_analyses_tiragesBloomK30_ne --tree-dir trees4analyses --profile-fn aa_fitness/tiragesBloomK30.tsv --np 4 --fast --ns 500 && \
	mv dag.dot daganalyses_tiragesBloomK30_ne.dot
Carine Rey's avatar
Carine Rey committed
97

Carine Rey's avatar
Carine Rey committed
98 99
.PHONY: analyses_263Bloom_ne
analyses_263Bloom_ne:
Carine Rey's avatar
Carine Rey committed
100
	cd example && \
Carine Rey's avatar
Carine Rey committed
101 102
	reviewphiltrans validation --outdir outdir_analyses_263SelectedProfiles_ne --tree-dir trees4analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 4 --fast --ns 500 && \
	mv dag.dot daganalyses_263SelectedProfiles_ne.dot
Carine Rey's avatar
Carine Rey committed
103

LANORE Vincent's avatar
LANORE Vincent committed
104 105 106 107 108 109 110 111 112 113
# -----------------------------------------------------------------------
#   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
114
clean_test:
115 116 117 118
	rm -rf example/_bistro
	rm -rf example/outdir
	rm -rf example/report.log
	rm -rf example/dot.dag
119

LANORE Vincent's avatar
LANORE Vincent committed
120
.PHONY: format
121 122
format:
	ocp-indent -i lib/*.ml lib/*.mli app/*.ml