-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
74 lines (55 loc) · 2.28 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
62
63
64
65
66
67
68
69
70
71
72
73
74
notebooks := $(wildcard notebooks/*.ipynb) $(wildcard notebooks/**/*.ipynb)
html_pages := $(patsubst notebooks/%.ipynb,docs/%.html,$(notebooks))
build.site: $(html_pages)
clean.site: ; rm $(html_pages)
print-%: ; @echo $* is $($*):
docs/%.html: notebooks/%.ipynb
jupyter nbconvert\
--to html $<\
--output-dir $(dir $@)\
--template classic\
#0. Re-run ALL analysis notebooks
all_analyses: main_analyses supp_analyses
#1. Main analysis notebooks
main_analyses: corr_piA_piB_real_data demography_copying_rate joint_ldstats two_locus_adna two_locus_demographic
corr_piA_piB_real_data:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/main_analyses/corr_piA_piB_real_data.ipynb
demography_copying_rate:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/main_analyses/demography_copying_rate.ipynb
gen_corrbl_tables:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/main_analyses/gen_corrbl_tables.ipynb
joint_ldstats:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/main_analyses/joint_LDstats.ipynb
reich1240k_analysis:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/main_analyses/reich_1240k_analysis.ipynb
two_locus_adna:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/main_analyses/two_locus_adna.ipynb
two_locus_demographic:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/main_analyses/two_locus_demographic.ipynb
#2. Supplementary Analysis notebooks
supp_analyses: check_first_coal est_ta_Ne time_to_first_coal two_locus_divergence validate_equations
check_first_coal:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/supp_analyses/check_first_coal.ipynb
est_ta_Ne:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/supp_analyses/est_ta_Ne.ipynb
time_to_first_coal:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/supp_analyses/time_to_first_coal_anc_sample.ipynb
two_locus_divergence:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/supp_analyses/two_locus_adna_divergence.ipynb
validate_equations:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/supp_analyses/validate_equations.ipynb
ls_verify:
jupyter nbconvert --to notebook\
--execute --inplace notebooks/supp_analyses/ls_verify.ipynb