SchlossLab / mikropml-snakemake-workflow

Snakemake template for building reusable and scalable machine learning pipelines with mikropml
MIT License
11 stars 3 forks source link

Add wildcards as columns in train_ml results dataframes #30

Closed kelly-sovacool closed 1 year ago

kelly-sovacool commented 1 year ago

Users sometimes need to specify different I/O filenames with additional wildcards. It'd be great to write a function that takes the wildcards and adds them as columns in the results data frames, i.e. a DRY version of this: https://github.com/SchlossLab/severe-CDI/blob/cf4196b209467562ae0f023f9d52da5904c12def/workflow/scripts/ml.R#L4-L11