Skip to content

Commit

Permalink
added copyChange class
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPuthawala committed Mar 27, 2024
1 parent ee4062c commit f87c702
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 13 deletions.
40 changes: 35 additions & 5 deletions schema/catvrs/catvrs-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ $defs:

NumberCount:
maturity: draft
ga4ghDigest:
keys:
- copies
# ga4ghDigest:
# keys:
# - numberCount
type: object
description: >-
The absolute count of a discrete assayable unit (e.g. chromosome, gene, or sequence).
Expand All @@ -240,15 +240,45 @@ $defs:
default: "NumberCount"
description: >-
MUST be "NumberCount"
copies:
count:
oneOf:
- type: integer
- $refCurie: vrs:Range
description: >-
The integral quantity of the subject in a system
required: [ "copies" ]
required: [ "count" ]


NumberChange:
maturity: draft
# ga4ghDigest:
# keys:
# - numberChange
# prefix: CX
type: object
description: >-
A quantitative assessment of a unit within a system (e.g. genome, cell,
etc.) relative to a baseline quantity.
properties:
type:
type: string
const: "NumberChange"
default: "NumberChange"
description: >-
MUST be "NumberChange"
change:
oneOf:
- type: integer
- $refCurie: vrs:Range
- copyChange:
type: string
enum: [ "efo:0030069", "efo:0020073", "efo:0030068", "efo:0030067", "efo:0030064", "efo:0030070",
"efo:0030071", "efo:0030072" ]
description: >-
MUST be one of "efo:0030069" (complete genomic loss), "efo:0020073" (high-level loss),
"efo:0030068" (low-level loss), "efo:0030067" (loss), "efo:0030064" (regional base ploidy),
"efo:0030070" (gain), "efo:0030071" (low-level gain), "efo:0030072" (high-level gain).
required: [ "change" ]



Expand Down
24 changes: 24 additions & 0 deletions schema/catvrs/def/NumberChange.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
**Computational Definition**

A quantitative assessment of a unit within a system (e.g. genome, cell, etc.) relative to a baseline quantity.

**Information Model**

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

* - Field
- Type
- Limits
- Description
* - type
- string
- 0..1
- MUST be "NumberChange"
* - change
- integer | `Range <../vrs/vrs.yaml#/$defs/Range>`_ | string
- 0..1
-
2 changes: 1 addition & 1 deletion schema/catvrs/def/NumberCount.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The absolute count of a discrete assayable unit (e.g. chromosome, gene, or seque
- string
- 0..1
- MUST be "NumberCount"
* - copies
* - count
- integer | `Range <../vrs/vrs.yaml#/$defs/Range>`_
- 1..1
- The integral quantity of the subject in a system
46 changes: 46 additions & 0 deletions schema/catvrs/json/NumberChange
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/catvrs/1.x/json/NumberChange",
"title": "NumberChange",
"type": "object",
"maturity": "draft",
"description": "A quantitative assessment of a unit within a system (e.g. genome, cell, etc.) relative to a baseline quantity.",
"properties": {
"type": {
"type": "string",
"const": "NumberChange",
"default": "NumberChange",
"description": "MUST be \"NumberChange\""
},
"change": {
"oneOf": [
{
"$ref": "/ga4gh/schema/vrs/2.x/json/Range"
},
{
"type": "integer"
},
{
"copyChange": null,
"type": "string",
"enum": [
"efo:0030069",
"efo:0020073",
"efo:0030068",
"efo:0030067",
"efo:0030064",
"efo:0030070",
"efo:0030071",
"efo:0030072"
],
"description": "MUST be one of \"efo:0030069\" (complete genomic loss), \"efo:0020073\" (high-level loss), \"efo:0030068\" (low-level loss), \"efo:0030067\" (loss), \"efo:0030064\" (regional base ploidy), \"efo:0030070\" (gain), \"efo:0030071\" (low-level gain), \"efo:0030072\" (high-level gain)."
}
],
"required": [
"change"
]
}
},
"required": [],
"additionalProperties": false
}
9 changes: 2 additions & 7 deletions schema/catvrs/json/NumberCount
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"title": "NumberCount",
"type": "object",
"maturity": "draft",
"ga4ghDigest": {
"keys": [
"copies"
]
},
"description": "The absolute count of a discrete assayable unit (e.g. chromosome, gene, or sequence).",
"properties": {
"type": {
Expand All @@ -17,7 +12,7 @@
"default": "NumberCount",
"description": "MUST be \"NumberCount\""
},
"copies": {
"count": {
"oneOf": [
{
"$ref": "/ga4gh/schema/vrs/2.x/json/Range"
Expand All @@ -30,7 +25,7 @@
}
},
"required": [
"copies"
"count"
],
"additionalProperties": false
}

0 comments on commit f87c702

Please sign in to comment.