30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
rule merge_baseline_data:
|
|
input:
|
|
data = expand(config["PARAMS_FOR_ANALYSIS"]["BASELINE"]["FOLDER"] + "/{container}", container=config["PARAMS_FOR_ANALYSIS"]["BASELINE"]["CONTAINER"])
|
|
output:
|
|
"data/raw/baseline_merged.csv"
|
|
script:
|
|
"../src/data/merge_baseline_data.py"
|
|
|
|
rule download_baseline_data:
|
|
input:
|
|
participant_file = "data/external/participant_files/{pid}.yaml",
|
|
data = "data/raw/baseline_merged.csv"
|
|
output:
|
|
"data/raw/{pid}/participant_baseline_raw.csv"
|
|
script:
|
|
"../src/data/download_baseline_data.py"
|
|
|
|
rule baseline_features:
|
|
input:
|
|
"data/raw/{pid}/participant_baseline_raw.csv"
|
|
params:
|
|
pid="{pid}",
|
|
features=config["PARAMS_FOR_ANALYSIS"]["BASELINE"]["FEATURES"],
|
|
question_filename=config["PARAMS_FOR_ANALYSIS"]["BASELINE"]["FOLDER"] + "/" + config["PARAMS_FOR_ANALYSIS"]["BASELINE"]["QUESTION_LIST"]
|
|
output:
|
|
interim="data/interim/{pid}/baseline_questionnaires.csv",
|
|
features="data/processed/features/{pid}/baseline_features.csv"
|
|
script:
|
|
"../src/data/baseline_features.py"
|