Makefile 3.65 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
build:
Carine Rey's avatar
Carine Rey committed
6
	dune build
Philippe Veber's avatar
Philippe Veber committed
7

LANORE Vincent's avatar
LANORE Vincent committed
8
.PHONY: install
Philippe Veber's avatar
Philippe Veber committed
9
install:
Carine Rey's avatar
Carine Rey committed
10
	dune 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
#   Test
LANORE Vincent's avatar
LANORE Vincent committed
32
# -----------------------------------------------------------------------
Carine Rey's avatar
Carine Rey committed
33

Carine Rey's avatar
Carine Rey committed
34 35
.PHONY: test
test:
Carine Rey's avatar
Carine Rey committed
36
	cd example && \
Carine Rey's avatar
Carine Rey committed
37
	reviewphiltrans validation --outdir outdir_test --tree-dir trees_test --profile-fn aa_fitness/263SelectedProfiles.tsv --ns 5  --np 4 --seed 4256073781403810077 && \
Carine Rey's avatar
Carine Rey committed
38 39 40
	reviewphiltrans validation --outdir outdir_test --tree-dir trees_test --profile-fn aa_fitness/263SelectedProfiles.tsv --dnds --ns 5  --np 4 --seed 4256073781403810077
	#mv dag.dot dagtest_val.dot && \
	#dot -Tsvg dagtest_val.dot -o dagtest_val.svg
Carine Rey's avatar
Carine Rey committed
41

Carine Rey's avatar
Carine Rey committed
42 43 44 45 46 47 48
# -----------------------------------------------------------------------
#   Test
# -----------------------------------------------------------------------

.PHONY: realdata_test
realdata_test:
	cd example && \
49 50 51 52 53
	../_build/install/default/bin/reviewphiltrans realdata --outdir outdir_realdata_test --indir real_data/online_rodent  --np 16 &&\
	../_build/install/default/bin/reviewphiltrans realdata --pcoc-v2 --pcoc-pcp --pcoc --outdir outdir_realdata_test --indir real_data/online_rodent  --np 16 &&\
	../_build/install/default/bin/reviewphiltrans realdata --pcoc-v2 --pcoc-pcp --pcoc --gt --outdir outdir_realdata_test --indir real_data/online_rodent  --np 16 &&\
	../_build/install/default/bin/reviewphiltrans realdata --pcoc-v2 --pcoc-pcp --pcoc --gt --dnds --outdir outdir_realdata_test --indir real_data/online_rodent   --np 16 &&\
	../_build/install/default/bin/reviewphiltrans realdata --pcoc-v2 --pcoc-pcp --pcoc --tdg09 --gt --dnds --outdir outdir_realdata_test --indir real_data/online_rodent   --np 16
Carine Rey's avatar
Carine Rey committed
54 55 56 57 58 59 60 61 62 63 64

# -----------------------------------------------------------------------
#   Realdata
# -----------------------------------------------------------------------

.PHONY: realdata
realdata:
	cd /mnt && \
	mkdir -p wd_reviewphiltrans &&\
	cd wd_reviewphiltrans &&\
	reviewphiltrans realdata --outdir realdata_online_rodents_ensemblkeep --indir /home/ubuntu/data_4_reviewphiltrans_rongeur_ensemblkeep  --np 32 --mem 160 --seed 4256073781403810077
Carine Rey's avatar
Carine Rey committed
65 66


Carine Rey's avatar
Carine Rey committed
67
# -----------------------------------------------------------------------
68
#   big experiments
Carine Rey's avatar
Carine Rey committed
69
# -----------------------------------------------------------------------
Carine Rey's avatar
Carine Rey committed
70 71
.PHONY: analyses
analyses:
Carine Rey's avatar
Carine Rey committed
72
	cd example && \
Carine Rey's avatar
Carine Rey committed
73 74
	reviewphiltrans validation --outdir outdir_analyses --tree-dir trees_analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 24 --ns 2000 --seed 2167988076475850536 ; \
	reviewphiltrans validation --outdir outdir_analyses --tree-dir trees_analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 24 --ns 2000 --seed 2167988076475850536 --diffsel
Carine Rey's avatar
Carine Rey committed
75

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

Philippe Veber's avatar
Philippe Veber committed
85 86
.PHONY: clean-test
clean-test:
87
	rm -rf example/_bistro
Carine Rey's avatar
Carine Rey committed
88
	rm -rf example/outdir_test
Carine Rey's avatar
Carine Rey committed
89
	rm -rf example/outdir_realdata_test
90 91
	rm -rf example/report.log
	rm -rf example/dot.dag
92

LANORE Vincent's avatar
LANORE Vincent committed
93
.PHONY: format
94 95
format:
	ocp-indent -i lib/*.ml lib/*.mli app/*.ml
Philippe Veber's avatar
Philippe Veber committed
96 97 98

notes/%.html: notes/%.md
	scirep --libs bistro.ppx,bistro.utils,codepi $< $@