-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnakefile.txt
49 lines (43 loc) · 1.13 KB
/
Snakefile.txt
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
rule all:
input:
"3_plot/out/choropleth_plot.html"
rule get_hu_metadata:
input:
csv_file = "1_fetch/src/in/huc_inputs.csv"
output:
out_file = "1_fetch/out/tmp/hu_metadata.pkl"
script:
"1_fetch/src/huc_extraction.py"
rule get_data:
params:
param_code = "00010",
stat_code = "00003",
start = "2022-01-01",
end = "2022-12-31"
input:
in_file = "1_fetch/out/tmp/hu_metadata.pkl"
output:
out_file = "1_fetch/out/tmp/timeseries_info.pkl"
script:
"1_fetch/src/data_extraction.py"
rule clean_data:
input:
in_file = "1_fetch/out/tmp/timeseries_info.pkl"
output:
out_file = "2_process/out/tmp/cleaned_timeseries_info.pkl"
script:
"2_process/src/data_cleaning.py"
rule process_data:
input:
in_file = "2_process/out/tmp/cleaned_timeseries_info.pkl"
output:
out_file = "2_process/out/tmp/processed_cleaned_timeseries_info.pkl"
script:
"2_process/src/data_processing.py"
rule plot_data:
input:
in_file = "2_process/out/tmp/processed_cleaned_timeseries_info.pkl"
output:
out_file = "3_plot/out/choropleth_plot.html"
script:
"3_plot/src/plotting.py"