Skip to content

Commit

Permalink
allow phenotypes in config wo seed_gene_config
Browse files Browse the repository at this point in the history
  • Loading branch information
HolEv committed Oct 10, 2023
1 parent d56e009 commit cfcf7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeprvat/deeprvat/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def update_config(
"specified if --baseline-results is"
)
seed_config = config["phenotypes"].get(phenotype, None)
if isinstance(config["phenotypes"], dict):
if (isinstance(config["phenotypes"], dict)) & (seed_config is not None):
correction_method = seed_config.get("correction_method", None)
min_seed_genes = seed_config.get("min_seed_genes", None)
max_seed_genes = seed_config.get("max_seed_genes", None)
Expand Down

0 comments on commit cfcf7ec

Please sign in to comment.