Skip to content

Feature/extend map phenotype#3

Merged
VarenyaJ merged 6 commits intodevelopfrom
feature/extend_map_phenotype
Aug 5, 2025
Merged

Feature/extend map phenotype#3
VarenyaJ merged 6 commits intodevelopfrom
feature/extend_map_phenotype

Conversation

@VarenyaJ
Copy link
Copy Markdown
Owner

@VarenyaJ VarenyaJ commented Aug 5, 2025

No description provided.

…I subpackages

- enhance regex to extract both free‐text label and numeric HPO ID
- use hpotk.get_term() to look up the ontology term and compare its name
- emit a warning if the provided label doesn’t match the ontology’s term name
- allow sheets without labels to continue working (backwards compatibility)
- fixes missing Phenotype records on both Python_headers_phenocopy_transformation.xlsx and Sydney_Python_transformation.xlsx
  - Single method, unified regex for HPO label+ID parsing
  - Properly handle unparsable HPO cells, missing ontology terms, obsolete terms, and label mismatches
- Wrap access to `VariationDescriptor.Expression` and `.location`/alleles in `try/except AttributeError` so CLI won’t crash on protobufs lacking those fields
- Eliminate mutable default dict in `Genotype`; rely on `zygosity_code` property and class‐level mapping
- All existing tests (genotype, mapper, CLI) now pass, deprecation warning only remains from protobuf internals
@VarenyaJ VarenyaJ merged commit 234ccc6 into develop Aug 5, 2025
2 checks passed
@VarenyaJ VarenyaJ deleted the feature/extend_map_phenotype branch August 15, 2025 12:05
@VarenyaJ VarenyaJ mentioned this pull request Sep 22, 2025
4 tasks
@VarenyaJ VarenyaJ linked an issue Sep 22, 2025 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature/extend_map_phenotype

1 participant