From 798ec973b453a1d57cf21bac6f5ecf6cdcf59b22 Mon Sep 17 00:00:00 2001 From: junos Date: Wed, 30 Mar 2022 10:43:30 +0200 Subject: [PATCH] [WIP] Add a rule for ESM features. --- rules/features.smk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rules/features.smk b/rules/features.smk index 22add826..ed2d89aa 100644 --- a/rules/features.smk +++ b/rules/features.smk @@ -332,6 +332,17 @@ rule preprocess_esm: script: "../src/features/phone_esm/straw/preprocess.py" +rule esm_features: + input: + sensor_data = "data/interim/{pid}/phone_esm_{feature}_clean.csv", + time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv" + params: + sensor_key = "phone_esm", + questionnaire_name = "{feature}" + output: "data/processed/{pid}/phone_esm_{feature}_features.csv" + script: + "../src/features/entry.R" + rule phone_keyboard_python_features: input: sensor_data = "data/raw/{pid}/phone_keyboard_with_datetime.csv",