-
Notifications
You must be signed in to change notification settings - Fork 1
/
remake.yml
87 lines (72 loc) · 2.11 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
# This file is automatically generated from traits.build
# package, via the file remake.yml.whisker:
# edit the file there (or the files that it includes).
packages:
- traits.build
targets:
all:
depends:
- austraits
- export/data/curr/austraits.rds
export/data/curr/austraits.rds:
command: saveRDS(austraits, target_name)
version_number:
command: util_get_version("config/metadata.yml")
git_SHA:
command: util_get_SHA()
depends:
- .git/index
schema:
command: get_schema()
resource_metadata:
command: get_schema("config/metadata.yml", I("metadata"))
definitions:
command: get_schema("config/traits.yml", I("traits"))
unit_conversions:
command: get_unit_conversions("config/unit_conversions.csv")
taxon_list:
command: read_csv_char("config/taxon_list.csv")
example_dataset_1_config:
command: >
dataset_configure("data/example_dataset_1/metadata.yml",
definitions,
unit_conversions
)
example_dataset_1_raw:
command: >
dataset_process("data/example_dataset_1/data.csv",
example_dataset_1_config,
schema,
resource_metadata
)
example_dataset_1:
command: >
build_update_taxonomy(example_dataset_1_raw,
taxon_list
)
example_dataset_2_config:
command: >
dataset_configure("data/example_dataset_2/metadata.yml",
definitions,
unit_conversions
)
example_dataset_2_raw:
command: >
dataset_process("data/example_dataset_2/data.csv",
example_dataset_2_config,
schema,
resource_metadata
)
example_dataset_2:
command: >
build_update_taxonomy(example_dataset_2_raw,
taxon_list
)
austraits_raw:
command: >
build_combine(
example_dataset_1,
example_dataset_2,
NULL)
austraits:
command: build_add_version(austraits_raw, version_number, git_SHA)