-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathremake.yml
110 lines (85 loc) · 2.41 KB
/
remake.yml
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
packages:
- rotl
- ape
- rfishbase
- brms
- parallel
- Hmisc
- LoLinR
- extrafont
- fontcm
- noaaErddap
- ncdf4
- plyr
- zoo
- tools
- raster
- envPred
- knitr
- rmarkdown
sources:
- R/analyses.R
- R/figures.R
- R/tables.R
targets:
all:
depends:
- noaaErddapLayersExist
- output/tables/table1.csv
- output/tables/table2.csv
- output/tables/tableS1.csv
- output/figures/fig1.pdf
- output/figures/fig2.pdf
- output/figures/fig3.pdf
# data crunching
noaaErddapLayersExist:
command: checkIfNoaaErddapLayersExist()
# phylogenetic Actinopterygii tree
# downloaded on 01 / Dec / 2017
tree:
command: downloadAndProcessTree()
otlSubs:
command: readFile('data/otlSppSubstitutions.csv')
spawningModeTab:
command: readFile('data/spawningMode.csv')
phyloTreeAndData:
command: cleanAndExtractPhyloTreeAndMatchedData(tree = tree, otlSubs = otlSubs, filePath = 'data/fishEggsMSData.csv')
coordinates:
command: makeCoordinatesTable(phyloTreeAndData)
chlTable:
command: matchNcdfDataFrameStyle(I('chlorophyll'), coordinates)
sstTable:
command: matchNcdfDataFrameStyle(I('sst'), coordinates)
predictabilityTable:
command: makeEnvironmentalPredictabilityTable(chlTable, sstTable)
abioticData:
command: produceAbioticData(chlTable, sstTable, predictabilityTable)
filteredData:
command: filterDataForAnalysis(phyloTreeAndData, abioticData)
# data analysis
allModels:
command: runAllModels(filteredData)
spawningCheckModel:
command: runSpawningCheckModel(filteredData, spawningModeTab)
comparisonTab:
command: looComparison(allModels)
# tables
table1:
command: makeTable1(filteredData)
output/tables/table1.csv:
command: writeTable1(dest = target_name, table1)
table2:
command: makeTable2(allModels)
output/tables/table2.csv:
command: writeTable2(dest = target_name, table2)
tableS1:
command: makeTableS1(spawningCheckModel)
output/tables/tableS1.csv:
command: writeTableS1(dest = target_name, tableS1)
# figures
output/figures/fig1.pdf:
command: makeFig1(dest = target_name, data = filteredData)
output/figures/fig2.pdf:
command: makeFig2(dest = target_name, filteredData = filteredData, allModels = allModels)
output/figures/fig3.pdf:
command: makeFig3(dest = target_name, filteredData = filteredData, allModels = allModels)