Skip to content

Commit

Permalink
test and update CAF to TU
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwagner committed Nov 26, 2024
1 parent 7b3d68c commit 606004c
Show file tree
Hide file tree
Showing 18 changed files with 253 additions and 256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ imports:
$defs:
CohortAlleleFrequencyStudyResult:
inherits: va-core:StudyResult
maturity: draft
maturity: trial use
type: object
description: >-
A StudyResult that reports measures related to the frequency of an Allele in a cohort
Expand Down
4 changes: 2 additions & 2 deletions schema/va-spec/base/def/CohortAlleleFrequencyStudyResult.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
5 changes: 1 addition & 4 deletions schema/va-spec/base/def/DataSet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,8 @@ Some DataSet attributes are inherited from :ref:`gks-core:Entity`.
- A specific type of data set the DataSet instance represents (e.g. a 'clinical data set', a 'sequencing data set', a 'gene expression data set', a 'genome annotation data set')
* - reportedIn
-
.. raw:: html

<span style="background-color: #B2DFEE; color: black; padding: 2px 6px; border: 1px solid black; border-radius: 3px; font-weight: bold; display: inline-block; margin-bottom: 5px;" title="Unordered">&#8942;</span>
- :ref:`Document` | :ref:`iriReference`
- 0..m
- 0..1
- A document in which the the Method is reported.
* - releaseDate
-
Expand Down
5 changes: 1 addition & 4 deletions schema/va-spec/base/def/Method.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ Some Method attributes are inherited from :ref:`gks-core:Entity`.
- A specific type of method that a Method instance represents (e.g. 'Variant Interpretation Guideline', or 'Experimental Protocol').
* - reportedIn
-
.. raw:: html

<span style="background-color: #B2DFEE; color: black; padding: 2px 6px; border: 1px solid black; border-radius: 3px; font-weight: bold; display: inline-block; margin-bottom: 5px;" title="Unordered">&#8942;</span>
- :ref:`Document` | :ref:`iriReference`
- 0..m
- 0..1
- A document in which the the Method is reported.
2 changes: 1 addition & 1 deletion schema/va-spec/base/json/CohortAlleleFrequencyStudyResult
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/CohortAlleleFrequencyStudyResult",
"title": "CohortAlleleFrequencyStudyResult",
"maturity": "draft",
"maturity": "trial use",
"type": "object",
"description": "A StudyResult that reports measures related to the frequency of an Allele in a cohort",
"properties": {
Expand Down
20 changes: 8 additions & 12 deletions schema/va-spec/base/json/DataSet
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,14 @@
"description": "A specific type of data set the DataSet instance represents (e.g. a 'clinical data set', a 'sequencing data set', a 'gene expression data set', a 'genome annotation data set')"
},
"reportedIn": {
"type": "array",
"ordered": false,
"items": {
"oneOf": [
{
"$ref": "/ga4gh/schema/va-spec/1.x/base/json/Document"
},
{
"$ref": "/ga4gh/schema/gks-core/1.x/json/iriReference"
}
]
},
"oneOf": [
{
"$ref": "/ga4gh/schema/va-spec/1.x/base/json/Document"
},
{
"$ref": "/ga4gh/schema/gks-core/1.x/json/iriReference"
}
],
"description": "A document in which the the Method is reported."
},
"releaseDate": {
Expand Down
22 changes: 9 additions & 13 deletions schema/va-spec/base/json/Method
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,17 @@
"subtype": {
"$ref": "/ga4gh/schema/gks-core/1.x/json/MappableConcept",
"description": "A specific type of method that a Method instance represents (e.g. 'Variant Interpretation Guideline', or 'Experimental Protocol').",
"$comment": "This attribute can be used to report a specific type for the Method, in cases where a model does not define Method subclasses for this purpose. Implementers can define their own set of method type codes/terms, to match the needs of their application.\n reportedIn:"
"$comment": "This attribute can be used to report a specific type for the Method, in cases where a model does not define Method subclasses for this purpose. Implementers can define their own set of method type codes/terms, to match the needs of their application."
},
"reportedIn": {
"type": "array",
"ordered": false,
"items": {
"oneOf": [
{
"$ref": "/ga4gh/schema/va-spec/1.x/base/json/Document"
},
{
"$ref": "/ga4gh/schema/gks-core/1.x/json/iriReference"
}
]
},
"oneOf": [
{
"$ref": "/ga4gh/schema/va-spec/1.x/base/json/Document"
},
{
"$ref": "/ga4gh/schema/gks-core/1.x/json/iriReference"
}
],
"description": "A document in which the the Method is reported."
}
},
Expand Down
11 changes: 2 additions & 9 deletions schema/va-spec/base/va-core-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,8 @@ $defs:
This attribute can be used to report a specific type for the Method, in cases where a model
does not define Method subclasses for this purpose. Implementers can define their own set
of method type codes/terms, to match the needs of their application.
reportedIn:
reportedIn:
type: array
ordered: false
items:
oneOf:
oneOf:
- $ref: "#/$defs/Document"
- $ref: "/ga4gh/schema/gks-core/1.x/json/iriReference"
description: A document in which the the Method is reported.
Expand Down Expand Up @@ -660,10 +656,7 @@ $defs:
Implementers can define their own set of data set type codes/terms, to match
the needs of the domain or application.
reportedIn:
type: array
ordered: false
items:
oneOf:
oneOf:
- $ref: "#/$defs/Document"
- $ref: "/ga4gh/schema/gks-core/1.x/json/iriReference"
description: A document in which the the Method is reported.
Expand Down
3 changes: 2 additions & 1 deletion tests/fixtures/Exp-Var-Func-Impact-Statement-01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,5 @@ specifiedBy:
subtype:
primaryCode: variant interpretation guideline
reportedIn:
- https://pubmed.ncbi.nlm.nih.gov/29785012/
type: Document
pmid: 29785012
8 changes: 4 additions & 4 deletions tests/fixtures/Exp-Var-Func-Impact-Study-Result-01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ specifiedBy:
subtype:
label: Experimental protocol
reportedIn:
- type: Document
type: Document
pmid: 29785012
sourceDataSet:
type: DataSet
label: variant effect data set
license:
primaryCode: "CC0"
reportedIn:
- type: Document
urls:
- https://mavedb.org/score-sets/urn:mavedb:00000013-a-1
type: Document
urls:
- "https://mavedb.org/score-sets/urn:mavedb:00000013-a-1"
10 changes: 5 additions & 5 deletions tests/fixtures/VA-ClinVar-SCV-Example-002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ specifiedBy:
type: Method
label: ClinGen HL ACMG Specifications v1
reportedIn:
- id: https://submit.ncbi.nlm.nih.gov/ft/byid/vroiax8b/hearing_loss_acmg_specifications_v1_2018.pdf
urls:
- https://submit.ncbi.nlm.nih.gov/ft/byid/vroiax8b/hearing_loss_acmg_specifications_v1_2018.pdf
type: Document
label: ClinGen HL ACMG Specifications v1
id: https://submit.ncbi.nlm.nih.gov/ft/byid/vroiax8b/hearing_loss_acmg_specifications_v1_2018.pdf
urls:
- https://submit.ncbi.nlm.nih.gov/ft/byid/vroiax8b/hearing_loss_acmg_specifications_v1_2018.pdf
type: Document
label: ClinGen HL ACMG Specifications v1
extensions:
- name: clinvarMethodCategory
value: curation
Expand Down
14 changes: 7 additions & 7 deletions tests/fixtures/civic-curation-sop-method.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
id: civic.methods:2019
label: CIViC Curation SOP (2019)
reportedIn:
- id: pmid:31779674
type: Document
label: Danos et al., 2019, Genome Med.
title: Standard operating procedure for curation and clinical interpretation of
variants in cancer
doi: 10.1186/s13073-019-0687-x
pmid: 31779674
id: pmid:31779674
type: Document
label: Danos et al., 2019, Genome Med.
title: Standard operating procedure for curation and clinical interpretation of
variants in cancer
doi: 10.1186/s13073-019-0687-x
pmid: 31779674
type: Method
subtype:
primaryCode: variant curation standard operating procedure
Loading

0 comments on commit 606004c

Please sign in to comment.