2020-08-28 19:53:00 +02:00
|
|
|
rule join_features_from_providers:
|
|
|
|
input:
|
2020-11-25 22:34:05 +01:00
|
|
|
sensor_features = find_features_files
|
|
|
|
wildcard_constraints:
|
|
|
|
sensor_key = '(phone|fitbit).*'
|
2020-08-28 19:53:00 +02:00
|
|
|
output:
|
|
|
|
"data/processed/features/{pid}/{sensor_key}.csv"
|
|
|
|
script:
|
2020-11-25 22:34:05 +01:00
|
|
|
"../src/features/utils/join_features_from_providers.R"
|
2020-08-28 19:53:00 +02:00
|
|
|
|
2020-11-25 01:12:16 +01:00
|
|
|
rule phone_data_yield_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/interim/{pid}/phone_yielded_timestamps_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-25 01:12:16 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_DATA_YIELD"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_data_yield"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_data_yield_features/phone_data_yield_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
|
|
|
rule phone_data_yield_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/interim/{pid}/phone_yielded_timestamps_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-25 01:12:16 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_DATA_YIELD"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_data_yield"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_data_yield_features/phone_data_yield_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_accelerometer_python_features:
|
2020-08-28 23:50:49 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_accelerometer_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2019-10-25 16:21:09 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_ACCELEROMETER"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-13 17:42:36 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_accelerometer"
|
2019-10-25 16:21:09 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_accelerometer_features/phone_accelerometer_python_{provider_key}.csv"
|
2020-10-13 17:42:36 +02:00
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
2019-11-05 16:47:55 +01:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule phone_accelerometer_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_accelerometer_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_ACCELEROMETER"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_accelerometer"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_accelerometer_features/phone_accelerometer_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2020-10-08 00:11:06 +02:00
|
|
|
rule activity_recognition_episodes:
|
2019-11-05 16:47:55 +01:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_activity_recognition_with_datetime_unified.csv"
|
2020-10-26 20:28:19 +01:00
|
|
|
params:
|
|
|
|
episode_threshold_between_rows = config["PHONE_BATTERY"]["EPISODE_THRESHOLD_BETWEEN_ROWS"]
|
2019-11-05 16:47:55 +01:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_activity_recognition_episodes.csv"
|
2019-11-05 16:47:55 +01:00
|
|
|
script:
|
2020-10-19 21:07:12 +02:00
|
|
|
"../src/features/phone_activity_recognition/episodes/activity_recognition_episodes.R"
|
2019-11-05 21:17:20 +01:00
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_activity_recognition_python_features:
|
2019-11-27 21:27:48 +01:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_episodes = "data/interim/{pid}/phone_activity_recognition_episodes_resampled_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-10-08 00:11:06 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_ACTIVITY_RECOGNITION"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_activity_recognition"
|
2019-11-27 21:27:48 +01:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_activity_recognition_features/phone_activity_recognition_python_{provider_key}.csv"
|
2020-09-19 02:25:29 +02:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.py"
|
2020-09-19 02:25:29 +02:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule phone_activity_recognition_r_features:
|
|
|
|
input:
|
|
|
|
sensor_episodes = "data/interim/{pid}/phone_activity_recognition_episodes_resampled_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_ACTIVITY_RECOGNITION"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_activity_recognition"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_activity_recognition_features/phone_activity_recognition_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2021-01-14 01:05:36 +01:00
|
|
|
rule phone_applications_crashes_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_applications_crashes_with_datetime_with_categories.csv",
|
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_APPLICATIONS_CRASHES"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_applications_crashes"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_applications_crashes_features/phone_applications_crashes_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
|
|
|
rule phone_applications_crashes_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_applications_crashes_with_datetime_with_categories.csv",
|
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_APPLICATIONS_CRASHES"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_applications_crashes"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_applications_crashes_features/phone_applications_crashes_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_applications_foreground_python_features:
|
2020-09-19 02:25:29 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_applications_foreground_with_datetime_with_categories.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-09-19 02:25:29 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_APPLICATIONS_FOREGROUND"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_applications_foreground"
|
2020-09-19 02:25:29 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_applications_foreground_features/phone_applications_foreground_python_{provider_key}.csv"
|
2019-11-27 21:53:37 +01:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.py"
|
2020-04-21 00:05:54 +02:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule phone_applications_foreground_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_applications_foreground_with_datetime_with_categories.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_APPLICATIONS_FOREGROUND"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_applications_foreground"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_applications_foreground_features/phone_applications_foreground_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2021-01-14 01:05:36 +01:00
|
|
|
rule phone_applications_notifications_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_applications_notifications_with_datetime_with_categories.csv",
|
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_APPLICATIONS_NOTIFICATIONS"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_applications_notifications"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_applications_notifications_features/phone_applications_notifications_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
|
|
|
rule phone_applications_notifications_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_applications_notifications_with_datetime_with_categories.csv",
|
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_APPLICATIONS_NOTIFICATIONS"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_applications_notifications"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_applications_notifications_features/phone_applications_notifications_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
|
|
|
rule phone_aware_log_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_aware_log_with_datetime.csv",
|
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_AWARE_LOG"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_aware_log"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_aware_log_features/phone_aware_log_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
|
|
|
rule phone_aware_log_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_aware_log_with_datetime.csv",
|
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_AWARE_LOG"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_aware_log"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_aware_log_features/phone_aware_log_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2020-10-08 00:11:06 +02:00
|
|
|
rule battery_episodes:
|
2020-04-21 00:05:54 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/raw/{pid}/phone_battery_raw.csv"
|
2020-10-26 20:28:19 +01:00
|
|
|
params:
|
|
|
|
episode_threshold_between_rows = config["PHONE_BATTERY"]["EPISODE_THRESHOLD_BETWEEN_ROWS"]
|
2019-11-05 21:17:20 +01:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_battery_episodes.csv"
|
2019-11-05 21:17:20 +01:00
|
|
|
script:
|
2020-10-19 21:07:12 +02:00
|
|
|
"../src/features/phone_battery/episodes/battery_episodes.R"
|
2019-11-06 18:19:30 +01:00
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_battery_python_features:
|
2020-07-16 20:26:43 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_episodes = "data/interim/{pid}/phone_battery_episodes_resampled_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-07-16 20:26:43 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_BATTERY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_battery"
|
2020-07-16 20:26:43 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_battery_features/phone_battery_python_{provider_key}.csv"
|
2020-07-16 20:26:43 +02:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.py"
|
2020-07-16 20:26:43 +02:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule phone_battery_r_features:
|
|
|
|
input:
|
|
|
|
sensor_episodes = "data/interim/{pid}/phone_battery_episodes_resampled_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_BATTERY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_battery"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_battery_features/phone_battery_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
|
|
|
rule phone_bluetooth_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_bluetooth_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_BLUETOOTH"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_bluetooth"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_bluetooth_features/phone_bluetooth_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_bluetooth_r_features:
|
2020-08-31 23:08:26 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_bluetooth_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-08-31 23:08:26 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_BLUETOOTH"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_bluetooth"
|
2020-08-31 23:08:26 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_bluetooth_features/phone_bluetooth_r_{provider_key}.csv"
|
2020-08-31 23:08:26 +02:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.R"
|
2020-08-31 23:08:26 +02:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule calls_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_calls_with_datetime_unified.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_CALLS"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_calls"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_calls_features/phone_calls_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
2020-10-08 00:11:06 +02:00
|
|
|
rule calls_r_features:
|
2019-11-08 18:18:21 +01:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_calls_with_datetime_unified.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-09-29 23:13:34 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_CALLS"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_calls"
|
2019-11-08 18:18:21 +01:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_calls_features/phone_calls_r_{provider_key}.csv"
|
2020-09-19 02:25:29 +02:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.R"
|
2020-09-19 02:25:29 +02:00
|
|
|
|
2020-10-08 00:11:06 +02:00
|
|
|
rule conversation_python_features:
|
2020-09-19 02:25:29 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_conversation_with_datetime_unified.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-09-19 02:25:29 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_CONVERSATION"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_conversation"
|
2019-11-27 20:25:17 +01:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_conversation_features/phone_conversation_python_{provider_key}.csv"
|
2019-11-27 20:25:17 +01:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.py"
|
2020-01-14 15:51:39 +01:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule conversation_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_conversation_with_datetime_unified.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_CONVERSATION"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_conversation"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_conversation_features/phone_conversation_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2021-01-14 01:05:36 +01:00
|
|
|
rule phone_keyboard_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_keyboard_with_datetime.csv",
|
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_KEYBOARD"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_keyboard"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_keyboard_features/phone_keyboard_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
|
|
|
rule phone_keyboard_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_keyboard_with_datetime.csv",
|
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_KEYBOARD"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_keyboard"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_keyboard_features/phone_keyboard_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_light_python_features:
|
2020-01-14 15:51:39 +01:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_light_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-01-14 15:51:39 +01:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_LIGHT"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_light"
|
2020-09-01 18:01:24 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_light_features/phone_light_python_{provider_key}.csv"
|
2020-01-14 15:51:39 +01:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.py"
|
2020-01-15 20:15:24 +01:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule phone_light_r_features:
|
2020-06-19 07:27:28 +02:00
|
|
|
input:
|
2020-11-04 20:05:25 +01:00
|
|
|
sensor_data = "data/raw/{pid}/phone_light_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-06-19 07:27:28 +02:00
|
|
|
params:
|
2020-11-04 20:05:25 +01:00
|
|
|
provider = lambda wildcards: config["PHONE_LIGHT"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-11-04 20:05:25 +01:00
|
|
|
sensor_key = "phone_light"
|
2020-09-01 23:07:07 +02:00
|
|
|
output:
|
2020-11-04 20:05:25 +01:00
|
|
|
"data/interim/{pid}/phone_light_features/phone_light_r_{provider_key}.csv"
|
2020-09-01 23:07:07 +02:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.R"
|
2020-09-01 23:07:07 +02:00
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_locations_python_features:
|
2020-09-01 23:07:07 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/interim/{pid}/phone_locations_processed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-09-01 23:07:07 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_LOCATIONS"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_locations"
|
2020-06-19 07:27:28 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_locations_features/phone_locations_python_{provider_key}.csv"
|
2020-06-19 07:27:28 +02:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.py"
|
2020-06-19 07:27:28 +02:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule phone_locations_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/interim/{pid}/phone_locations_processed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_LOCATIONS"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_locations"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_locations_features/phone_locations_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
|
|
|
rule phone_messages_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_messages_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_MESSAGES"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_messages"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_messages_features/phone_messages_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_messages_r_features:
|
2020-01-15 20:15:24 +01:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_messages_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-01-15 20:15:24 +01:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_MESSAGES"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_messages"
|
2020-01-15 20:15:24 +01:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_messages_features/phone_messages_r_{provider_key}.csv"
|
2020-01-15 20:15:24 +01:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.R"
|
2020-01-29 22:22:53 +01:00
|
|
|
|
2020-10-08 00:11:06 +02:00
|
|
|
rule screen_episodes:
|
2020-09-01 21:25:35 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
screen = "data/raw/{pid}/phone_screen_with_datetime_unified.csv"
|
2020-10-08 00:11:06 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_screen_episodes.csv"
|
2020-10-08 00:11:06 +02:00
|
|
|
script:
|
2020-10-19 21:07:12 +02:00
|
|
|
"../src/features/phone_screen/episodes/screen_episodes.R"
|
2020-10-08 00:11:06 +02:00
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_screen_python_features:
|
2020-10-08 00:11:06 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_episodes = "data/interim/{pid}/phone_screen_episodes_resampled_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-09-01 21:25:35 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_SCREEN"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_screen"
|
2020-02-07 17:52:55 +01:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_screen_features/phone_screen_python_{provider_key}.csv"
|
2020-10-08 00:11:06 +02:00
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
2020-02-07 17:52:55 +01:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule phone_screen_r_features:
|
|
|
|
input:
|
|
|
|
sensor_episodes = "data/interim/{pid}/phone_screen_episodes_resampled_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_SCREEN"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_screen"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_screen_features/phone_screen_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
|
|
|
rule phone_wifi_connected_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_wifi_connected_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_WIFI_CONNECTED"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_wifi_connected"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_wifi_connected_features/phone_wifi_connected_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_wifi_connected_r_features:
|
2020-09-01 00:51:06 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_wifi_connected_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-09-01 00:51:06 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_WIFI_CONNECTED"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_wifi_connected"
|
2020-09-01 00:51:06 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_wifi_connected_features/phone_wifi_connected_r_{provider_key}.csv"
|
2020-09-01 00:51:06 +02:00
|
|
|
script:
|
2020-10-08 00:11:06 +02:00
|
|
|
"../src/features/entry.R"
|
2020-09-01 00:51:06 +02:00
|
|
|
|
2020-11-04 20:05:25 +01:00
|
|
|
rule phone_wifi_visible_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/phone_wifi_visible_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["PHONE_WIFI_VISIBLE"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "phone_wifi_visible"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/phone_wifi_visible_features/phone_wifi_visible_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
2020-10-19 21:07:12 +02:00
|
|
|
rule phone_wifi_visible_r_features:
|
2020-09-01 00:51:06 +02:00
|
|
|
input:
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_data = "data/raw/{pid}/phone_wifi_visible_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-05-15 23:51:00 +02:00
|
|
|
params:
|
2020-10-19 21:07:12 +02:00
|
|
|
provider = lambda wildcards: config["PHONE_WIFI_VISIBLE"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-08 00:11:06 +02:00
|
|
|
provider_key = "{provider_key}",
|
2020-10-19 21:07:12 +02:00
|
|
|
sensor_key = "phone_wifi_visible"
|
2020-05-15 23:51:00 +02:00
|
|
|
output:
|
2020-10-19 21:07:12 +02:00
|
|
|
"data/interim/{pid}/phone_wifi_visible_features/phone_wifi_visible_r_{provider_key}.csv"
|
2020-05-15 23:51:00 +02:00
|
|
|
script:
|
2020-10-19 21:07:12 +02:00
|
|
|
"../src/features/entry.R"
|
2020-05-15 23:51:00 +02:00
|
|
|
|
2020-11-11 23:27:46 +01:00
|
|
|
rule fitbit_heartrate_summary_python_features:
|
2020-10-27 22:55:57 +01:00
|
|
|
input:
|
2020-11-11 23:27:46 +01:00
|
|
|
sensor_data = "data/raw/{pid}/fitbit_heartrate_summary_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-10-27 22:55:57 +01:00
|
|
|
params:
|
2020-11-11 23:27:46 +01:00
|
|
|
provider = lambda wildcards: config["FITBIT_HEARTRATE_SUMMARY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-27 22:55:57 +01:00
|
|
|
provider_key = "{provider_key}",
|
2020-11-11 23:27:46 +01:00
|
|
|
sensor_key = "fitbit_heartrate_summary"
|
2020-10-27 22:55:57 +01:00
|
|
|
output:
|
2020-11-11 23:27:46 +01:00
|
|
|
"data/interim/{pid}/fitbit_heartrate_summary_features/fitbit_heartrate_summary_python_{provider_key}.csv"
|
2020-10-27 22:55:57 +01:00
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
2020-11-11 23:27:46 +01:00
|
|
|
rule fitbit_heartrate_summary_r_features:
|
2020-11-04 20:05:25 +01:00
|
|
|
input:
|
2020-11-11 23:27:46 +01:00
|
|
|
sensor_data = "data/raw/{pid}/fitbit_heartrate_summary_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
2020-11-11 23:27:46 +01:00
|
|
|
provider = lambda wildcards: config["FITBIT_HEARTRATE_SUMMARY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-11-04 20:05:25 +01:00
|
|
|
provider_key = "{provider_key}",
|
2020-11-11 23:27:46 +01:00
|
|
|
sensor_key = "fitbit_heartrate_summary"
|
2020-11-04 20:05:25 +01:00
|
|
|
output:
|
2020-11-11 23:27:46 +01:00
|
|
|
"data/interim/{pid}/fitbit_heartrate_summary_features/fitbit_heartrate_summary_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
|
|
|
rule fitbit_heartrate_intraday_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/fitbit_heartrate_intraday_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-11 23:27:46 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["FITBIT_HEARTRATE_INTRADAY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "fitbit_heartrate_intraday"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/fitbit_heartrate_intraday_features/fitbit_heartrate_intraday_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
|
|
|
rule fitbit_heartrate_intraday_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/fitbit_heartrate_intraday_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-11 23:27:46 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["FITBIT_HEARTRATE_INTRADAY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "fitbit_heartrate_intraday"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/fitbit_heartrate_intraday_features/fitbit_heartrate_intraday_r_{provider_key}.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2020-11-12 03:16:48 +01:00
|
|
|
rule fitbit_steps_summary_python_features:
|
2020-10-30 23:57:04 +01:00
|
|
|
input:
|
2020-11-12 03:16:48 +01:00
|
|
|
sensor_data = "data/raw/{pid}/fitbit_steps_summary_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-10-30 23:57:04 +01:00
|
|
|
params:
|
2020-11-12 03:16:48 +01:00
|
|
|
provider = lambda wildcards: config["FITBIT_STEPS_SUMMARY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-10-30 23:57:04 +01:00
|
|
|
provider_key = "{provider_key}",
|
2020-11-12 03:16:48 +01:00
|
|
|
sensor_key = "fitbit_steps_summary"
|
2020-10-30 23:57:04 +01:00
|
|
|
output:
|
2020-11-12 03:16:48 +01:00
|
|
|
"data/interim/{pid}/fitbit_steps_summary_features/fitbit_steps_summary_python_{provider_key}.csv"
|
2020-10-30 23:57:04 +01:00
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
2020-11-12 03:16:48 +01:00
|
|
|
rule fitbit_steps_summary_r_features:
|
2020-11-04 20:05:25 +01:00
|
|
|
input:
|
2020-11-12 03:16:48 +01:00
|
|
|
sensor_data = "data/raw/{pid}/fitbit_steps_summary_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
params:
|
2020-11-12 03:16:48 +01:00
|
|
|
provider = lambda wildcards: config["FITBIT_STEPS_SUMMARY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
2020-11-04 20:05:25 +01:00
|
|
|
provider_key = "{provider_key}",
|
2020-11-12 03:16:48 +01:00
|
|
|
sensor_key = "fitbit_steps_summary"
|
2020-11-04 20:05:25 +01:00
|
|
|
output:
|
2020-11-12 03:16:48 +01:00
|
|
|
"data/interim/{pid}/fitbit_steps_summary_features/fitbit_steps_summary_r_{provider_key}.csv"
|
2020-11-04 20:05:25 +01:00
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2020-11-12 03:16:48 +01:00
|
|
|
rule fitbit_steps_intraday_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/fitbit_steps_intraday_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-12 03:16:48 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["FITBIT_STEPS_INTRADAY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "fitbit_steps_intraday"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/fitbit_steps_intraday_features/fitbit_steps_intraday_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
|
|
|
rule fitbit_steps_intraday_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/fitbit_steps_intraday_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-12 03:16:48 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["FITBIT_STEPS_INTRADAY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "fitbit_steps_intraday"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/fitbit_steps_intraday_features/fitbit_steps_intraday_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
2020-04-13 19:24:52 +02:00
|
|
|
|
2020-11-23 18:01:00 +01:00
|
|
|
rule fitbit_sleep_summary_python_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/fitbit_sleep_summary_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-23 18:01:00 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["FITBIT_SLEEP_SUMMARY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "fitbit_sleep_summary"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/fitbit_sleep_summary_features/fitbit_sleep_summary_python_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.py"
|
|
|
|
|
|
|
|
rule fitbit_sleep_summary_r_features:
|
|
|
|
input:
|
|
|
|
sensor_data = "data/raw/{pid}/fitbit_sleep_summary_parsed_with_datetime.csv",
|
2020-12-03 00:41:03 +01:00
|
|
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
2020-11-23 18:01:00 +01:00
|
|
|
params:
|
|
|
|
provider = lambda wildcards: config["FITBIT_SLEEP_SUMMARY"]["PROVIDERS"][wildcards.provider_key.upper()],
|
|
|
|
provider_key = "{provider_key}",
|
|
|
|
sensor_key = "fitbit_sleep_summary"
|
|
|
|
output:
|
|
|
|
"data/interim/{pid}/fitbit_sleep_summary_features/fitbit_sleep_summary_r_{provider_key}.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/entry.R"
|
|
|
|
|
2020-11-25 22:34:05 +01:00
|
|
|
rule merge_sensor_features_for_individual_participants:
|
|
|
|
input:
|
|
|
|
feature_files = input_merge_sensor_features_for_individual_participants
|
|
|
|
output:
|
|
|
|
"data/processed/features/{pid}/all_sensor_features.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/utils/merge_sensor_features_for_individual_participants.R"
|
|
|
|
|
|
|
|
rule merge_sensor_features_for_all_participants:
|
|
|
|
input:
|
|
|
|
feature_files = expand("data/processed/features/{pid}/all_sensor_features.csv", pid=config["PIDS"])
|
|
|
|
output:
|
|
|
|
"data/processed/features/all_participants/all_sensor_features.csv"
|
|
|
|
script:
|
|
|
|
"../src/features/utils/merge_sensor_features_for_all_participants.R"
|