-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (52 loc) · 3.31 KB
/
Makefile
File metadata and controls
72 lines (52 loc) · 3.31 KB
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
# A good simple tutorial about Make can be found at http://kbroman.org/minimal_make/
R_OPTS=--no-save --no-restore --no-init-file --no-site-file
all: data model paper
data: objects/pair_div.rds
model: objects/fit12.rds objects/fit3.rds
paper: ms/ms.pdf figures/concepts.pdf figures/h1-raw.pdf figures/h1.pdf figures/h2.pdf
ms/ms.pdf: ms/ms.Rmd ms/stomata-independence.bib figures/concepts.pdf figures/h1-raw.pdf figures/h2-raw.pdf figures/h1.pdf figures/h2.pdf objects/h12output.rds
Rscript -e 'rmarkdown::render("ms/ms.Rmd", output_format = "bookdown::pdf_document2", output_file = "ms.pdf")'
Rscript -e 'rmarkdown::render("ms/online-supplement.Rmd", output_format = "bookdown::pdf_document2", output_file = "online-supplement.pdf")'
figures/concepts.pdf: r/16_plot-concepts.R
Rscript -e 'source("r/16_plot-concepts.R")'
figures/h1-raw.pdf: r/08_plot-h1-raw.R
Rscript -e 'source("r/08_plot-h1-raw.R")'
figures/h2-raw.pdf: r/09_plot-h2-raw.R
Rscript -e 'source("r/09_plot-h2-raw.R")'
figures/h1.pdf: r/11_prepare-plotting1.R r/12_plot-h1-pairs.R r/14_plot-h1.R objects/fit12.rds
Rscript -e 'source("r/11_prepare-plotting1.R")'
Rscript -e 'source("r/12_plot-h1-pairs.R")'
Rscript -e 'source("r/14_plot-h1.R")'
figures/h2.pdf: r/11_prepare-plotting1.R r/13_plot-h2-pairs.R r/15_plot-h2.R objects/fit12.rds
Rscript -e 'source("r/11_prepare-plotting1.R")'
Rscript -e 'source("r/13_plot-h2-pairs.R")'
Rscript -e 'source("r/15_plot-h2.R")'
objects/h12output.rds: objects/fit12.rds r/17_summarize-fit1.R
Rscript -e 'source("r/17_summarize-fit1.R")'
objects/fit12.rds: r/10_fit-models1.R processed-data/trimmed-data.rds processed-data/trimmed-phylogeny.rds objects/pair_div.rds
Rscript -e 'source("r/10_fit-models1.R")'
processed-data/trimmed-data.rds: r/06_connect-data.R processed-data/resolved_names.rds processed-data/phy2.rds raw-data/plant-c-value.csv
Rscript -e 'source("r/06_connect-data.R")'
processed-data/trimmed-phylogeny.rds: r/06_connect-data.R processed-data/resolved_names.rds processed-data/phy2.rds
Rscript -e 'source("r/06_connect-data.R")'
objects/pair_div.rds: r/07_make-pairs.R processed-data/trimmed-data.rds processed-data/trimmed-phylogeny.rds
Rscript -e 'source("r/07_make-pairs.R")'
objects/pair_div_genome.rds: r/07_make-pairs.R processed-data/trimmed-data.rds processed-data/trimmed-phylogeny.rds
Rscript -e 'source("r/07_make-pairs.R")'
processed-data/resolved_names.rds: r/02_resolve-names.R processed-data/taxize_output.rds
Rscript -e 'source("r/02_resolve-names.R")'
processed-data/phy2.rds: r/05_make-subtrees.R processed-data/phy1.rds objects/polytomies.rds
Rscript -e 'source("r/05_make-subtrees.R")'
processed-data/taxize_output.rds: r/01_taxize-data.R
Rscript -e 'source("r/01_taxize-data.R")'
processed-data/phy1.rds: r/04_prepare-subtrees.R processed-data/phy.rds
Rscript -e 'source("r/04_prepare-subtrees.R")'
source raxml/run-raxml.sh
objects/polytomies.rds: r/04_prepare-subtrees.R processed-data/phy.rds
Rscript -e 'source("r/04_prepare-subtrees.R")'
processed-data/phy.rds: r/03_make-megatree.R processed-data/resolved_names.rds
Rscript -e 'source("r/03_make-megatree.R")'
clean:
\rm -f *~ *.Rout */*~ */*.Rout .RData Rplots.pdf
cleanall:
\rm -f *.aux *.bbl *.blg *.log *.pdf *~ *.Rout */*~ */*.Rout figures/*.png figures/*.pdf ms/ms.pdf ms/ms.tex objects/*.rds processed-data/*.rds */*.aux */*.log