Skip to content

Commit

Permalink
add CNV profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwagner committed Sep 9, 2024
1 parent 82ac4c7 commit 3df5dcd
Show file tree
Hide file tree
Showing 10 changed files with 137 additions and 8 deletions.
33 changes: 31 additions & 2 deletions schema/cat-vrs/profiles/cat-vrs-profiles-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $defs:
type: object
maturity: draft
description: >-
Categorical Variant constraints found in Protein Sequence Consequences.
Cat-VRS Constraints found in Protein Sequence Consequences.
properties:
constraints:
contains:
Expand All @@ -41,7 +41,7 @@ $defs:
type: object
maturity: draft
description: >-
Categorical Variant constraints found in Canonical Alleles.
Cat-VRS Constraints found in Canonical Alleles.
properties:
constraints:
contains:
Expand All @@ -65,4 +65,33 @@ $defs:
across different genome assemblies and associated cDNA transcript representations.
allOf:
- $ref: "#/$defs/CanonicalAlleleProperties"
- $ref: "/ga4gh/schema/cat-vrs/1.x/core/json/CategoricalVariant"

CategoricalCnvProperties:
type: object
maturity: draft
description: >-
Cat-VRS Constraints found in CategoricalCnvs.
properties:
constraints:
allOf:
- contains:
allOf:
- $ref: "/ga4gh/schema/cat-vrs/1.x/core/json/DefiningContextConstraint"
- type: object
properties:
relations:
contains:
const: sequence_liftover
- contains:
anyOf:
- $ref: "/ga4gh/schema/cat-vrs/1.x/core/json/CopyCountConstraint"
- $ref: "/ga4gh/schema/cat-vrs/1.x/core/json/CopyChangeConstraint"

CategoricalCnv:
maturity: draft
description: >-
A representation of the constraints for matching knowledge about CNVs.
allOf:
- $ref: "#/$defs/CategoricalCnvProperties"
- $ref: "/ga4gh/schema/cat-vrs/1.x/core/json/CategoricalVariant"
2 changes: 1 addition & 1 deletion schema/cat-vrs/profiles/def/CanonicalAlleleProperties.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**Computational Definition**

Categorical Variant constraints found in Canonical Alleles.
Cat-VRS Constraints found in Canonical Alleles.

**Information Model**

Expand Down
17 changes: 17 additions & 0 deletions schema/cat-vrs/profiles/def/CategoricalCnv.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
**Computational Definition**

A representation of the constraints for matching knowledge about CNVs.

**Information Model**


.. list-table::
:class: clean-wrap
:header-rows: 1
:align: left
:widths: auto

* - Field
- Type
- Limits
- Description
21 changes: 21 additions & 0 deletions schema/cat-vrs/profiles/def/CategoricalCnvProperties.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
**Computational Definition**

Cat-VRS Constraints found in CategoricalCnvs.

**Information Model**


.. list-table::
:class: clean-wrap
:header-rows: 1
:align: left
:widths: auto

* - Field
- Type
- Limits
- Description
* - constraints
- _Not Specified_
- 0..1
-
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**Computational Definition**

Categorical Variant constraints found in Protein Sequence Consequences.
Cat-VRS Constraints found in Protein Sequence Consequences.

**Information Model**

Expand Down
2 changes: 1 addition & 1 deletion schema/cat-vrs/profiles/json/CanonicalAlleleProperties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "CanonicalAlleleProperties",
"type": "object",
"maturity": "draft",
"description": "Categorical Variant constraints found in Canonical Alleles.",
"description": "Cat-VRS Constraints found in Canonical Alleles.",
"properties": {
"constraints": {
"contains": {
Expand Down
16 changes: 16 additions & 0 deletions schema/cat-vrs/profiles/json/CategoricalCnv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://w3id.org/ga4gh/schema/cat-vrs/1.x/profiles/json/CategoricalCnv",
"title": "CategoricalCnv",
"type": "object",
"maturity": "draft",
"description": "A representation of the constraints for matching knowledge about CNVs.",
"allOf": [
{
"$ref": "/ga4gh/schema/cat-vrs/1.x/profiles/json/CategoricalCnvProperties"
},
{
"$ref": "/ga4gh/schema/cat-vrs/1.x/core/json/CategoricalVariant"
}
]
}
46 changes: 46 additions & 0 deletions schema/cat-vrs/profiles/json/CategoricalCnvProperties
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://w3id.org/ga4gh/schema/cat-vrs/1.x/profiles/json/CategoricalCnvProperties",
"title": "CategoricalCnvProperties",
"type": "object",
"maturity": "draft",
"description": "Cat-VRS Constraints found in CategoricalCnvs.",
"properties": {
"constraints": {
"allOf": [
{
"contains": {
"allOf": [
{
"$ref": "/ga4gh/schema/cat-vrs/1.x/core/json/DefiningContextConstraint"
},
{
"type": "object",
"properties": {
"relations": {
"contains": {
"const": "sequence_liftover"
}
}
}
}
]
}
},
{
"contains": {
"anyOf": [
{
"$ref": "/ga4gh/schema/cat-vrs/1.x/core/json/CopyCountConstraint"
},
{
"$ref": "/ga4gh/schema/cat-vrs/1.x/core/json/CopyChangeConstraint"
}
]
}
}
]
}
},
"required": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "ProteinSequenceConsequenceProperties",
"type": "object",
"maturity": "draft",
"description": "Categorical Variant constraints found in Protein Sequence Consequences.",
"description": "Cat-VRS Constraints found in Protein Sequence Consequences.",
"properties": {
"constraints": {
"contains": {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ tests:
- test_file: describedVariant-ex1.yaml
definition: CategoricalVariant
- test_file: categoricalCnv-ex1.yaml
definition: CategoricalVariant
definition: CategoricalCnv
- test_file: categoricalCnv-ex2.yaml
definition: CategoricalVariant
definition: CategoricalCnv

0 comments on commit 3df5dcd

Please sign in to comment.