Skip to content

Commit

Permalink
Merge pull request #71 from monarch-initiative/70-validation-error-in…
Browse files Browse the repository at this point in the history
…-configyaml-for-empty-fields

70 validation error in `config.yaml` for empty fields
  • Loading branch information
yaseminbridges authored Nov 14, 2024
2 parents 92d04d7 + 86adaa0 commit d302b21
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pheval_exomiser"
version = "0.2.5"
version = "0.2.6"
description = ""
authors = ["Yasemin Bridges <[email protected]>",
"Julius Jacobsen <[email protected]>",
Expand Down
26 changes: 13 additions & 13 deletions src/pheval_exomiser/prepare/tool_specific_configuration_options.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pathlib import Path
from typing import List
from typing import List, Optional

from pydantic import BaseModel, Field

Expand All @@ -20,17 +20,17 @@ class ApplicationProperties(BaseModel):
cache_caffeine_spec (int): Cache limit
"""

remm_version: str = Field(None)
cadd_version: str = Field(None)
hg19_data_version: str = Field(None)
hg19_local_frequency_path: Path = Field(None)
hg19_whitelist_path: Path = Field(None)
hg38_data_version: str = Field(None)
hg38_local_frequency_path: Path = Field(None)
hg38_whitelist_path: Path = Field(None)
phenotype_data_version: str = Field(None)
cache_type: str = Field(None)
cache_caffeine_spec: int = Field(None)
remm_version: Optional[str] = Field(None)
cadd_version: Optional[str] = Field(None)
hg19_data_version: Optional[str] = Field(None)
hg19_local_frequency_path: Optional[Path] = Field(None)
hg19_whitelist_path: Optional[Path] = Field(None)
hg38_data_version: Optional[str] = Field(None)
hg38_local_frequency_path: Optional[Path] = Field(None)
hg38_whitelist_path: Optional[Path] = Field(None)
phenotype_data_version: Optional[str] = Field(None)
cache_type: Optional[str] = Field(None)
cache_caffeine_spec: Optional[int] = Field(None)


class PostProcessing(BaseModel):
Expand Down Expand Up @@ -64,5 +64,5 @@ class ExomiserConfigurations(BaseModel):
analysis_configuration_file: Path = Field(...)
max_jobs: int = Field(...)
application_properties: ApplicationProperties = Field(...)
output_formats: List[str] = Field(None)
output_formats: Optional[List[str]] = Field(None)
post_process: PostProcessing = Field(...)

0 comments on commit d302b21

Please sign in to comment.