Defer creation of feature files to esm_features rule.

labels
junos 2022-04-05 18:30:04 +02:00
parent 751b04f3f4
commit e2ce68f591
1 changed files with 6 additions and 4 deletions

View File

@ -331,18 +331,20 @@ rule preprocess_esm:
provider_key="{provider_key}",
sensor_key="phone_esm",
scales=lambda wildcards: config["PHONE_ESM"]["PROVIDERS"][wildcards.provider_key.upper()]["SCALES"]
output: "data/interim/{pid}/phone_esm_features/phone_esm_clean_{provider_key}.csv"
output: "data/interim/{pid}/phone_esm_clean.csv"
script:
"../src/features/phone_esm/straw/preprocess.py"
rule esm_features:
input:
sensor_data = "data/interim/{pid}/phone_esm_{feature}_clean.csv",
sensor_data = "data/interim/{pid}/phone_esm_clean.csv",
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
params:
provider = lambda wildcards: config["PHONE_ESM"]["PROVIDERS"][wildcards.provider_key.upper()],
provider_key = "{provider_key}",
sensor_key = "phone_esm",
questionnaire_name = "{feature}"
output: "data/processed/{pid}/phone_esm_{feature}_features.csv"
scales=lambda wildcards: config["PHONE_ESM"]["PROVIDERS"][wildcards.provider_key.upper()]["SCALES"]
output: "data/interim/{pid}/phone_esm_features/phone_esm_clean_{provider_key}.csv"
script:
"../src/features/entry.R"