-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakefile
More file actions
46 lines (41 loc) · 1.02 KB
/
Snakefile
File metadata and controls
46 lines (41 loc) · 1.02 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
rule all:
input:
"src/dash_dashboard.html"
rule wrangle_dashes:
input:
"data/raw_data.xlsx"
output:
"data/wrangled_data.Rdata"
shell:
"Rscript --vanilla src/dash_wrangling.R"
rule wrangle_locations:
input:
"data/wrangled_data.Rdata",
"data/Takeout/Location History/Location History.json"
output:
"data/dash_locations.csv"
shell:
"Rscript --vanilla src/clean_locations.R"
rule heatmap:
input:
"data/dash_locations.csv"
output:
"src/heatmap.html"
shell:
"python3 src/dash_heatmap.py -o {output} {input}"
rule animation:
input:
"data/dash_locations.csv"
output:
"src/animation.gif"
shell:
"Rscript --vanilla src/animated_map.R"
rule dashboard:
input:
"data/wrangled_data.Rdata",
"src/heatmap.html"
"src/animation.gif"
output:
"src/dash_dashboard.html"
shell:
"Rscript -e \"rmarkdown::render('src/dash_dashboard.Rmd')\""