Prepare baseline feature rule.

labels
junos 2022-02-23 11:09:33 +01:00
parent bf9c764c97
commit 176367631b
2 changed files with 17 additions and 0 deletions

View File

@ -14,3 +14,14 @@ rule download_baseline_data:
"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"]
output:
"data/processed/features/{pid}/baseline_features.csv"
script:
"../src/data/baseline_features.py"

View File

@ -0,0 +1,6 @@
import pandas as pd
pid = snakemake.params["pid"]
requested_features = snakemake.params["features"]
baseline_features = pd.DataFrame(columns=requested_features)