rapids/rules/reports.snakefile

40 lines
1.2 KiB
Plaintext

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"
rule compliance_report:
input:
sensor_heatmaps = expand("reports/figures/{{pid}}/{sensor}_heatmap_rows.html", sensor=config["SENSORS"]),
compliance_heatmap = rules.compliance_heatmap.output
output:
"reports/compliance/{pid}/compliance_report.html",
script:
"../src/visualization/compliance_report.Rmd"