KANBAN-838: Allow structured, post-composed phenotype annotations.#307
Closed
KANBAN-838: Allow structured, post-composed phenotype annotations.#307
Conversation
This commit implements the proposition discussed in the Disease WG on
2025/10/29.
Briefly, it replaces the `phenotype_terms` slot of the
PhenotypeAnnotation class (which can only be used to describe a
phenotype using a list of phenotype terms) by a new slot tentatively
called `structured_phenotype_annotation_object`, which is expected to
hold an instance of a new class called `StructuredPhenotype`.
A StructuredPhenotype allows to describe a phenotype using a combination
of 4 types of ontological terms, in 4 distinct slots:
* terms from phenotype ontologies (`phenotype_terms` slot);
* terms from anatomical ontologies (`affected_location` slot);
* terms from developmental stages ontologies (`affected_stage` slot);
* additional terms ("qualifiers") from phenotype ontologies
(`qualifiers` slot).
Contributor
Author
|
Superseded by #308, which proposes a better model that has been agreed upon in the Disease WG. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR tentatively implements the proposition discussed in the Disease WG on 2025/10/29.
Briefly, it replaces the phenotype_terms slot of the PhenotypeAnnotation class (which can only be used to describe a phenotype using a list of phenotype terms) by a new slot tentatively called structured_phenotype_annotation_object, which is expected to hold an instance of a new class called StructuredPhenotype.
A StructuredPhenotype allows to describe a phenotype using a combination of 4 types of ontological terms, in 4 distinct slots:
phenotype_termsslot);affected_locationslot);affected_stageslot);qualifiersslot).--
The PR currently does not address the need for arbitrary complex post-composed expressions, such as those seemingly used by ZFIN (e.g. https://zfin.org/action/ontology/term/ZFA:0000621#phenotype). The
StructuredPhenotypeclass could probably be extended to accommodate those, but this will require further discussion in the Disease WG.