Skip to content

Commit

Permalink
add association_only flag into config rule for update-config function.
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerkm committed Apr 23, 2024
1 parent d9ede28 commit b4b14ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pipelines/cv_training/cv_training.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ use rule config from deeprvat_workflow as deeprvat_config with:
for b in input.baseline
]) if wildcards.phenotype in training_phenotypes else ' ',
baseline_out = lambda wildcards: f'--baseline-results-out cv_split{wildcards.cv_split}/deeprvat/{wildcards.phenotype}/deeprvat/baseline_results.parquet' if wildcards.phenotype in training_phenotypes else ' ',
seed_genes_out = lambda wildcards: f'--seed-genes-out cv_split{wildcards.cv_split}/deeprvat/{wildcards.phenotype}/deeprvat/seed_genes.parquet' if wildcards.phenotype in training_phenotypes else ' '
seed_genes_out = lambda wildcards: f'--seed-genes-out cv_split{wildcards.cv_split}/deeprvat/{wildcards.phenotype}/deeprvat/seed_genes.parquet' if wildcards.phenotype in training_phenotypes else ' ',
association_only = lambda wildcards: f'--association-only' if wildcards.phenotype not in training_phenotypes else ' '
6 changes: 5 additions & 1 deletion pipelines/training/config.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ rule config:
baseline_out=lambda wildcards: f"--baseline-results-out {wildcards.phenotype}/deeprvat/baseline_results.parquet"
if wildcards.phenotype in training_phenotypes
else " ",
association_only=lambda wildcards: f"--association-only"
if wildcards.phenotype not in training_phenotypes
else " ",
shell:
(
"deeprvat_config update-config "
"--phenotype {wildcards.phenotype} "
"{params.baseline_results}"
"{params.association_only} "
"{params.baseline_results} "
"{params.baseline_out} "
"{params.seed_genes_out} "
"{input.config} "
Expand Down

0 comments on commit b4b14ec

Please sign in to comment.