Skip to content

Commit

Permalink
add group classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwagner committed Nov 27, 2024
1 parent af2d5da commit b8f99f3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions schema/va-spec/base/def/Condition.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. warning:: This data class is at a **draft** maturity level and may \
change significantly in future releases. Maturity \
.. note:: This data class is at a **trial use** maturity level and may \
change in future releases. Maturity \
levels are described in the :ref:`maturity-model`.

**Computational Definition**
Expand Down
4 changes: 2 additions & 2 deletions schema/va-spec/base/def/Therapeutic.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. warning:: This data class is at a **draft** maturity level and may \
change significantly in future releases. Maturity \
.. note:: This data class is at a **trial use** maturity level and may \
change in future releases. Maturity \
levels are described in the :ref:`maturity-model`.

**Computational Definition**
Expand Down
4 changes: 2 additions & 2 deletions schema/va-spec/base/domain-entities-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ imports:
$defs:
# Condition data structure for consolidating the different forms of conditions, individual vs co-occurring traits
Condition:
maturity: draft
maturity: trial use
description: >-
A set of traits (TraitSet) or a single trait (Disease, Phenotype, etc.) that represents
the object of a Variant Pathogenicity statement.
Expand All @@ -36,7 +36,7 @@ $defs:

# Therapeutic
Therapeutic:
maturity: draft
maturity: trial use
description: >-
A group of therapies (TherapyGroup) or a single therapy (drug, procedure, behavioral intervention, etc.).
oneOf:
Expand Down
2 changes: 1 addition & 1 deletion schema/va-spec/base/json/Condition
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://w3id.org/ga4gh/schema/va-spec/1.x/base/json/Condition",
"title": "Condition",
"maturity": "draft",
"maturity": "trial use",
"description": "A set of traits (TraitSet) or a single trait (Disease, Phenotype, etc.) that represents the object of a Variant Pathogenicity statement.",
"oneOf": [
{
Expand Down
2 changes: 1 addition & 1 deletion schema/va-spec/base/json/Therapeutic
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://w3id.org/ga4gh/schema/va-spec/1.x/base/json/Therapeutic",
"title": "Therapeutic",
"maturity": "draft",
"maturity": "trial use",
"description": "A group of therapies (TherapyGroup) or a single therapy (drug, procedure, behavioral intervention, etc.).",
"oneOf": [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def _get_trial_use_classes():
return set([x for x in js_def if x.startswith('va-spec') and js_def[x]['maturity'] == 'trial use'])

va_abstract_classes = {'va-spec.base:SubjectVariantProposition'}
va_abstract_classes = {'va-spec.base:SubjectVariantProposition', 'va-spec.base:Condition', 'va-spec.base:Therapeutic'}

def test_examples():
with open(test_path / 'test_definitions.yaml') as def_file:
Expand Down

0 comments on commit b8f99f3

Please sign in to comment.