Makefile 4.21 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 && \
Carine Rey's avatar
Carine Rey committed
43
	reviewphiltrans detection --outdir outdir/detection --indir outdir/data --preview --np 4 --fast && \
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
test_val:
	cd example && \
Carine Rey's avatar
Carine Rey committed
50
	reviewphiltrans validation --outdir outdir_validation --indir real_data --tree-dir trees --profile-fn aa_fitness/tiragesBloomK30.tsv --preview --fast --np 4 && \
Carine Rey's avatar
Carine Rey committed
51 52 53
	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
# -----------------------------------------------------------------------
#   experiments on threshold choices
# -----------------------------------------------------------------------

LANORE Vincent's avatar
LANORE Vincent committed
76 77
.PHONY: analyses_seuils
analyses_seuils:
Carine Rey's avatar
Carine Rey committed
78
	cd example && \
LANORE Vincent's avatar
LANORE Vincent committed
79 80
	reviewphiltrans validation --outdir outdir_analyses_seuils --tree-dir trees4analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 16 --no-ne --no-hapc --ns 1000 && \
	mv dag.dot daganalyses_seuils.dot
Carine Rey's avatar
Carine Rey committed
81

82
.PHONY: analyses_everything_fast
Carine Rey's avatar
typo  
Carine Rey committed
83
analyses_everything_fast:
84 85 86 87
	cd example && \
	reviewphiltrans validation --outdir outdir_analyses_everything_fast --tree-dir trees4analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 16 --ns 100 --fast && \
	mv dag.dot daganalyses_everything_fast.dot

LANORE Vincent's avatar
LANORE Vincent committed
88 89
.PHONY: analyses_everything
analyses_everything:
Carine Rey's avatar
Carine Rey committed
90
	cd example && \
LANORE Vincent's avatar
LANORE Vincent committed
91
	reviewphiltrans validation --outdir outdir_analyses_everything --tree-dir trees4analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 16 --ns 100 && \
92
	mv dag.dot daganalyses_everything.dot
Carine Rey's avatar
Carine Rey committed
93 94 95 96 97 98 99

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

.PHONY: analyses_30Bloom_ne
analyses_30Bloom_ne:
Carine Rey's avatar
Carine Rey committed
100
	cd example && \
Carine Rey's avatar
Carine Rey committed
101
	reviewphiltrans validation --outdir outdir_analyses_tiragesBloomK30_ne --tree-dir trees4analyses --profile-fn aa_fitness/tiragesBloomK30.tsv --np 4 --ns 500 --only-sim && \
Carine Rey's avatar
Carine Rey committed
102
	mv dag.dot daganalyses_tiragesBloomK30_ne.dot
Carine Rey's avatar
Carine Rey committed
103

Carine Rey's avatar
Carine Rey committed
104 105
.PHONY: analyses_263Bloom_ne
analyses_263Bloom_ne:
Carine Rey's avatar
Carine Rey committed
106
	cd example && \
Carine Rey's avatar
Carine Rey committed
107
	reviewphiltrans validation --outdir outdir_analyses_263SelectedProfiles_ne --tree-dir trees4analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 4 --ns 500 --only-sim && \
Carine Rey's avatar
Carine Rey committed
108
	mv dag.dot daganalyses_263SelectedProfiles_ne.dot
Carine Rey's avatar
Carine Rey committed
109

LANORE Vincent's avatar
LANORE Vincent committed
110 111 112 113 114 115 116 117 118 119
# -----------------------------------------------------------------------
#   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
120
clean_test:
121 122 123 124
	rm -rf example/_bistro
	rm -rf example/outdir
	rm -rf example/report.log
	rm -rf example/dot.dag
125

LANORE Vincent's avatar
LANORE Vincent committed
126
.PHONY: format
127 128
format:
	ocp-indent -i lib/*.ml lib/*.mli app/*.ml