Defer creation of feature files to esm_features rule.
parent
751b04f3f4
commit
e2ce68f591
|
@ -331,18 +331,20 @@ rule preprocess_esm:
|
||||||
provider_key="{provider_key}",
|
provider_key="{provider_key}",
|
||||||
sensor_key="phone_esm",
|
sensor_key="phone_esm",
|
||||||
scales=lambda wildcards: config["PHONE_ESM"]["PROVIDERS"][wildcards.provider_key.upper()]["SCALES"]
|
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:
|
script:
|
||||||
"../src/features/phone_esm/straw/preprocess.py"
|
"../src/features/phone_esm/straw/preprocess.py"
|
||||||
|
|
||||||
rule esm_features:
|
rule esm_features:
|
||||||
input:
|
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"
|
time_segments_labels = "data/interim/time_segments/{pid}_time_segments_labels.csv"
|
||||||
params:
|
params:
|
||||||
|
provider = lambda wildcards: config["PHONE_ESM"]["PROVIDERS"][wildcards.provider_key.upper()],
|
||||||
|
provider_key = "{provider_key}",
|
||||||
sensor_key = "phone_esm",
|
sensor_key = "phone_esm",
|
||||||
questionnaire_name = "{feature}"
|
scales=lambda wildcards: config["PHONE_ESM"]["PROVIDERS"][wildcards.provider_key.upper()]["SCALES"]
|
||||||
output: "data/processed/{pid}/phone_esm_{feature}_features.csv"
|
output: "data/interim/{pid}/phone_esm_features/phone_esm_clean_{provider_key}.csv"
|
||||||
script:
|
script:
|
||||||
"../src/features/entry.R"
|
"../src/features/entry.R"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue