rapids/rules/reports.snakefile

32 lines
896 B
Plaintext
Raw Normal View History

2019-10-25 17:12:55 +02:00
rule heatmap_rows:
input:
"data/raw/{pid}/{sensor}_with_datetime.csv"
params:
table = "{sensor}",
pid = "{pid}"
output:
"reports/figures/{pid}/{sensor}_heatmap_rows.html"
script:
"../src/visualization/heatmap_rows.py"
rule compliance_heatmap:
input:
"data/interim/{pid}/phone_sensed_bins.csv"
params:
pid = "{pid}",
bin_size = config["PHONE_VALID_SENSED_DAYS"]["BIN_SIZE"]
output:
"reports/figures/{pid}/compliance_heatmap.html"
script:
"../src/visualization/compliance_heatmap.py"
rule battery_consumption_rates_barchart:
input:
"data/processed/{pid}/battery_daily.csv"
params:
pid = "{pid}"
output:
"reports/figures/{pid}/battery_consumption_rates_barchart.html"
script:
"../src/visualization/battery_consumption_rates_barchart.py"