-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
158 lines (106 loc) · 3.57 KB
/
Copy pathMakefile
File metadata and controls
158 lines (106 loc) · 3.57 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
## This is Disease_data
current: target
-include target.mk
# include makestuff/perl.def
######################################################################
# Content
vim_session:
bash -ic "vmt"
## coronaCA.Rout: coronaCA.R
## coronaCA.ON.pdf: coronaCA.R
######################################################################
## Current Canadian data
## Not updated since 2024 apparently
covid_post.Rout: covid_post.R covid_post.csv
$(pipeR)
Sources += covid_post.csv
covid_post.csv:
wget -O $@ "https://health-infobase.canada.ca/src/data/covidLive/covid19-download.csv"
https://health-infobase.canada.ca/
######################################################################
Sources += $(wildcard *.R *.mkd *.pl)
# England and Wales measles time series from Ben Bolker's data site.
# http://ms.mcmaster.ca/~bolker/measdata.html
## See also outputs/ewmeas.ssv
Ignore += ewmeas.ssv
ewmeas.ssv:
wget -O $@ "http://ms.mcmaster.ca/~bolker/measdata/ewmeas.dat"
ewmeas.Rout: ewmeas.ssv ewmeas.R
$(wrapR)
##################
### JD TB income stuff from George Cauthen's floppy disk
### This is for three specific years in the 1980s
Sources += $(wildcard *.tsv)
tbincome.Rout: tbincome.tsv tbincome.R
$(wrapR)
##################
### SPECTRUM "data" from UNAIDS site
Sources += HIV_incidence_all.csv PLWH_all.csv
UNAIDS.mkd:
# For now, just try to pull the worldwide data from these scary files
Ignore += *.tab
PLWH_all.world.tab: PLWH_all.csv worldUN.pl
%.world.tab: %.csv worldUN.pl
$(PUSH)
HIV_incidence_all.world.yearly.Rout.pdf: HIV_incidence_all.world.tab HIV_incidence_all.world.vars.Rout yearly.R
%.yearly.Rout: %.vars.Rout %.tab yearly.R
$(run-R)
##### Epidemic cards
Sources += cards_2016.csv
cards.Rout: cards_2016.csv cardsim.rda cards.R
$(run-R)
cardsim.Rout: cardsim.R
$(run-R)
####### US mortality plot
Sources += us2000.txt
us2000.Rout: us2000.txt us2000.R
######################################################################
## Africa data from synchrony paper; this has a theobio wiki that should be updated
rsread.Rout: rsinc.csv rscoords.csv rsread.R
rsincplot.Rout: rsread.Rout rsincplot.R
######################################################################
## coronavirus, Mike Li spreadsheet
Sources += $(wildcard corona.csv)
## coronaPlot.Rout-0.pdf: coronaPlot.R
coronaPlot.Rout: coronaPlot.R corona.csv
$(pipeR)
Ignore += coronaCA.csv
## del coronaCA.csv ## to reload ##
coronaCA.csv:
wget -O $@ "https://raw.githubusercontent.com/wzmli/COVID19-Canada/master/git_push/clean.Rout.csv"
## coronaCA.ON.pdf: coronaCA.R coronaCA.csv
coronaCA.Rout: coronaCA.R coronaCA.csv
$(pipeR)
Ignore += coronaCA.*.pdf
coronaCA.ON.pdf: coronaCA.Rout ;
## coronaCA.Rout-2.pdf: coronaCA.R
pipeRoutdesc += coronaCA
######################################################################
## Flatten the curve
## Oops! This directory was supposed to be for data curation; fix after class is done 2022 Apr 03 (Sun)
## bolker.R: bolker.rmd
flatFuns.Rout: flatFuns.R
$(wrapR)
flatSims.Rout: flatSims.R flatFuns.rda
$(pipeR)
flatSimPlots.Rout: flatSimPlots.R flatSims.rda
$(pipeR)
flatResponse.Rout: flatResponse.R flatFuns.rda
$(pipeR)
flatResponsePlots.Rout: flatResponsePlots.R flatResponse.rds
$(pipeR)
### Makestuff
Sources += Makefile
Ignore += makestuff
msrepo = https://github.com/dushoff
Makefile: makestuff/Makefile
makestuff/Makefile:
git clone $(msrepo)/makestuff
ls $@
-include makestuff/os.mk
-include makestuff/pipeR.mk
-include makestuff/pdfpages.mk
## -include makestuff/rmd.mk
-include makestuff/git.mk
-include makestuff/visual.mk
-include makestuff/projdir.mk