2019-11-06 21:38:08 +01:00
|
|
|
rule sms_metrics:
|
2019-10-24 22:27:43 +02:00
|
|
|
input:
|
|
|
|
"data/raw/{pid}/messages_with_datetime.csv"
|
|
|
|
params:
|
|
|
|
sms_type = "{sms_type}",
|
|
|
|
day_segment = "{day_segment}",
|
2019-11-06 21:38:08 +01:00
|
|
|
metrics = lambda wildcards: config["SMS"]["METRICS"][wildcards.sms_type]
|
2019-10-24 22:27:43 +02:00
|
|
|
output:
|
2019-11-06 21:38:08 +01:00
|
|
|
"data/processed/{pid}/sms_{sms_type}_{day_segment}.csv"
|
2019-10-24 22:27:43 +02:00
|
|
|
script:
|
2019-11-06 21:38:08 +01:00
|
|
|
"../src/features/sms_metrics.R"
|
2019-10-25 16:21:09 +02:00
|
|
|
|
2019-11-06 20:47:33 +01:00
|
|
|
rule call_metrics:
|
2019-10-25 16:21:09 +02:00
|
|
|
input:
|
2019-11-12 21:12:43 +01:00
|
|
|
"data/raw/{pid}/calls_with_datetime_unified.csv"
|
2019-10-25 16:21:09 +02:00
|
|
|
params:
|
|
|
|
call_type = "{call_type}",
|
|
|
|
day_segment = "{day_segment}",
|
2019-11-06 20:47:33 +01:00
|
|
|
metrics = lambda wildcards: config["CALLS"]["METRICS"][wildcards.call_type]
|
2019-10-25 16:21:09 +02:00
|
|
|
output:
|
2019-11-06 20:47:33 +01:00
|
|
|
"data/processed/{pid}/call_{call_type}_{day_segment}.csv"
|
2019-10-25 16:21:09 +02:00
|
|
|
script:
|
2019-11-06 21:43:41 +01:00
|
|
|
"../src/features/call_metrics.R"
|
2019-11-05 16:47:55 +01:00
|
|
|
|
|
|
|
rule battery_deltas:
|
|
|
|
input:
|
|
|
|
"data/raw/{pid}/battery_with_datetime.csv"
|
|
|
|
output:
|
|
|
|
"data/processed/{pid}/battery_deltas.csv"
|
|
|
|
script:
|
2019-11-05 21:17:20 +01:00
|
|
|
"../src/features/battery_deltas.R"
|
|
|
|
|
|
|
|
rule location_barnett_metrics:
|
|
|
|
input:
|
|
|
|
"data/raw/{pid}/locations_with_datetime.csv"
|
|
|
|
params:
|
|
|
|
accuracy_limit = config["BARNETT_LOCATION"]["ACCURACY_LIMIT"],
|
|
|
|
timezone = config["BARNETT_LOCATION"]["TIMEZONE"]
|
|
|
|
output:
|
2019-11-06 18:32:35 +01:00
|
|
|
"data/processed/{pid}/location_barnett.csv"
|
2019-11-05 21:17:20 +01:00
|
|
|
script:
|
2019-11-06 18:19:30 +01:00
|
|
|
"../src/features/location_barnett_metrics.R"
|
|
|
|
|
|
|
|
rule bluetooth_metrics:
|
|
|
|
input:
|
|
|
|
"data/raw/{pid}/bluetooth_with_datetime.csv"
|
|
|
|
params:
|
|
|
|
day_segment = "{day_segment}",
|
|
|
|
metrics = config["BLUETOOTH"]["METRICS"]
|
|
|
|
output:
|
|
|
|
"data/processed/{pid}/bluetooth_{day_segment}.csv"
|
|
|
|
script:
|
2019-11-06 19:34:47 +01:00
|
|
|
"../src/features/bluetooth_metrics.R"
|
|
|
|
|
|
|
|
rule activity_metrics:
|
|
|
|
input:
|
|
|
|
"data/raw/{pid}/plugin_google_activity_recognition_with_datetime.csv"
|
2019-11-18 20:22:08 +01:00
|
|
|
params:
|
|
|
|
segment = "{day_segment}",
|
|
|
|
metrics = config["GOOGLE_ACTIVITY_RECOGNITION"]["METRICS"]
|
2019-11-06 19:34:47 +01:00
|
|
|
output:
|
2019-11-18 20:22:08 +01:00
|
|
|
"data/processed/{pid}/google_activity_recognition_{day_segment}.csv"
|
2019-11-06 19:34:47 +01:00
|
|
|
script:
|
2019-11-06 20:46:23 +01:00
|
|
|
"../src/features/google_activity_recognition.py"
|
2019-11-08 18:18:21 +01:00
|
|
|
|
|
|
|
rule battery_metrics:
|
|
|
|
input:
|
|
|
|
"data/processed/{pid}/battery_deltas.csv"
|
|
|
|
output:
|
|
|
|
"data/processed/{pid}/battery_daily.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/battery_metrics.py"
|