Skip to content

Commit 31eb3ab

Browse files
larrybabbahwagner
andauthored
Issue 640 (#643)
* fix #640: updated `copyChange` enumerations. * updated CODEOWNERS * updated schema `$id`s to 2.0.1 * init 2.0.1 change log --------- Co-authored-by: Alex H. Wagner, PhD <[email protected]>
1 parent 42398be commit 31eb3ab

27 files changed

+115
-90
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Each line is a file pattern followed by one or more owners.
2-
* @andreasprlic @ahwagner @larrybabb
2+
* @ahwagner @larrybabb

docs/source/releases/2.0.rst

+8
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ Major Changes
1414
* supports structural variation
1515
* imports from the GKS-core library for cross-specification alignment
1616
* renames Haplotype to CisPhasedBlock
17+
18+
2.0.1
19+
@@@@@
20+
21+
Summary of Changes
22+
##################
23+
24+
* updates :ref:`CopyNumberChange` draft to use named enum in lieu of MappableConcept

schema/vrs/def/CopyNumberChange.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ Some CopyNumberChange attributes are inherited from :ref:`Variation`.
9292
- The location of the subject of the copy change.
9393
* - copyChange
9494
-
95-
- :ref:`MappableConcept`
95+
- string
9696
- 1..1
97-
- MUST use a `primaryCode` representing 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).
97+
- MUST use one of the defined enumerations that are based on the corresponding EFO ontological terms for copy number variation. See Implementation Guidance for more details.

schema/vrs/json/Adjacency

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/Adjacency",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/Adjacency",
44
"title": "Adjacency",
55
"type": "object",
66
"maturity": "trial use",
@@ -53,7 +53,7 @@
5353
"type": "array",
5454
"ordered": false,
5555
"items": {
56-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Expression"
56+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Expression"
5757
}
5858
},
5959
"type": {
@@ -69,7 +69,7 @@
6969
"items": {
7070
"oneOf": [
7171
{
72-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/SequenceLocation"
72+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/SequenceLocation"
7373
},
7474
{
7575
"$ref": "/ga4gh/schema/gks-core/1.0.0/json/iriReference"
@@ -90,13 +90,13 @@
9090
"description": "The sequence found between adjoined sequences.",
9191
"oneOf": [
9292
{
93-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/LengthExpression"
93+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/LengthExpression"
9494
},
9595
{
96-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/LiteralSequenceExpression"
96+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/LiteralSequenceExpression"
9797
},
9898
{
99-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/ReferenceLengthExpression"
99+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/ReferenceLengthExpression"
100100
}
101101
]
102102
},

schema/vrs/json/Allele

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/Allele",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/Allele",
44
"title": "Allele",
55
"type": "object",
66
"maturity": "trial use",
@@ -53,7 +53,7 @@
5353
"type": "array",
5454
"ordered": false,
5555
"items": {
56-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Expression"
56+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Expression"
5757
}
5858
},
5959
"type": {
@@ -65,7 +65,7 @@
6565
"location": {
6666
"oneOf": [
6767
{
68-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/SequenceLocation"
68+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/SequenceLocation"
6969
},
7070
{
7171
"$ref": "/ga4gh/schema/gks-core/1.0.0/json/iriReference"
@@ -77,13 +77,13 @@
7777
"description": "An expression of the sequence state",
7878
"oneOf": [
7979
{
80-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/LengthExpression"
80+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/LengthExpression"
8181
},
8282
{
83-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/LiteralSequenceExpression"
83+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/LiteralSequenceExpression"
8484
},
8585
{
86-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/ReferenceLengthExpression"
86+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/ReferenceLengthExpression"
8787
}
8888
]
8989
}

schema/vrs/json/CisPhasedBlock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/CisPhasedBlock",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/CisPhasedBlock",
44
"title": "CisPhasedBlock",
55
"type": "object",
66
"maturity": "trial use",
@@ -52,7 +52,7 @@
5252
"type": "array",
5353
"ordered": false,
5454
"items": {
55-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Expression"
55+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Expression"
5656
}
5757
},
5858
"type": {
@@ -69,7 +69,7 @@
6969
"items": {
7070
"oneOf": [
7171
{
72-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Allele"
72+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Allele"
7373
},
7474
{
7575
"$ref": "/ga4gh/schema/gks-core/1.0.0/json/iriReference"
@@ -79,7 +79,7 @@
7979
"description": "A list of Alleles that are found in-cis on a shared molecule."
8080
},
8181
"sequenceReference": {
82-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/SequenceReference",
82+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/SequenceReference",
8383
"description": "An optional Sequence Reference on which all of the in-cis Alleles are found. When defined, this may be used to implicitly define the `sequenceReference` attribute for each of the CisPhasedBlock member Alleles."
8484
}
8585
},

schema/vrs/json/CopyNumberChange

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/CopyNumberChange",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/CopyNumberChange",
44
"title": "CopyNumberChange",
55
"type": "object",
66
"maturity": "draft",
@@ -53,7 +53,7 @@
5353
"type": "array",
5454
"ordered": false,
5555
"items": {
56-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Expression"
56+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Expression"
5757
}
5858
},
5959
"type": {
@@ -65,7 +65,7 @@
6565
"location": {
6666
"oneOf": [
6767
{
68-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/SequenceLocation"
68+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/SequenceLocation"
6969
},
7070
{
7171
"$ref": "/ga4gh/schema/gks-core/1.0.0/json/iriReference"
@@ -74,8 +74,18 @@
7474
"description": "The location of the subject of the copy change."
7575
},
7676
"copyChange": {
77-
"description": "MUST use a `primaryCode` representing 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).",
78-
"$ref": "/ga4gh/schema/gks-core/1.0.0/json/MappableConcept"
77+
"type": "string",
78+
"enum": [
79+
"complete genomic loss",
80+
"high-level loss",
81+
"low-level loss",
82+
"loss",
83+
"regional base ploidy",
84+
"gain",
85+
"low-level gain",
86+
"high-level gain"
87+
],
88+
"description": "MUST use one of the defined enumerations that are based on the corresponding EFO ontological terms for copy number variation. See Implementation Guidance for more details."
7989
}
8090
},
8191
"required": [

schema/vrs/json/CopyNumberCount

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/CopyNumberCount",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/CopyNumberCount",
44
"title": "CopyNumberCount",
55
"type": "object",
66
"maturity": "trial use",
@@ -53,7 +53,7 @@
5353
"type": "array",
5454
"ordered": false,
5555
"items": {
56-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Expression"
56+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Expression"
5757
}
5858
},
5959
"type": {
@@ -65,7 +65,7 @@
6565
"location": {
6666
"oneOf": [
6767
{
68-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/SequenceLocation"
68+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/SequenceLocation"
6969
},
7070
{
7171
"$ref": "/ga4gh/schema/gks-core/1.0.0/json/iriReference"
@@ -76,7 +76,7 @@
7676
"copies": {
7777
"oneOf": [
7878
{
79-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Range"
79+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Range"
8080
},
8181
{
8282
"type": "integer"

schema/vrs/json/DerivativeMolecule

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/DerivativeMolecule",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/DerivativeMolecule",
44
"title": "DerivativeMolecule",
55
"type": "object",
66
"maturity": "draft",
@@ -52,7 +52,7 @@
5252
"type": "array",
5353
"ordered": false,
5454
"items": {
55-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Expression"
55+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Expression"
5656
}
5757
},
5858
"type": {
@@ -68,16 +68,16 @@
6868
"items": {
6969
"oneOf": [
7070
{
71-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Allele"
71+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Allele"
7272
},
7373
{
74-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/CisPhasedBlock"
74+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/CisPhasedBlock"
7575
},
7676
{
77-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Terminus"
77+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Terminus"
7878
},
7979
{
80-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/TraversalBlock"
80+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/TraversalBlock"
8181
},
8282
{
8383
"$ref": "/ga4gh/schema/gks-core/1.0.0/json/iriReference"

schema/vrs/json/Expression

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/Expression",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/Expression",
44
"title": "Expression",
55
"type": "object",
66
"maturity": "trial use",

schema/vrs/json/LengthExpression

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/LengthExpression",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/LengthExpression",
44
"title": "LengthExpression",
55
"type": "object",
66
"maturity": "draft",
@@ -53,7 +53,7 @@
5353
"description": "The length of the sequence.",
5454
"oneOf": [
5555
{
56-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Range"
56+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Range"
5757
},
5858
{
5959
"type": "integer"

schema/vrs/json/LiteralSequenceExpression

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/LiteralSequenceExpression",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/LiteralSequenceExpression",
44
"title": "LiteralSequenceExpression",
55
"type": "object",
66
"maturity": "trial use",
@@ -50,7 +50,7 @@
5050
"default": "LiteralSequenceExpression"
5151
},
5252
"sequence": {
53-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/sequenceString",
53+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/sequenceString",
5454
"description": "the literal sequence"
5555
}
5656
},

schema/vrs/json/Location

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/Location",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/Location",
44
"title": "Location",
55
"type": "object",
66
"maturity": "trial use",
77
"description": "A contiguous segment of a biological sequence.",
88
"oneOf": [
99
{
10-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/SequenceLocation"
10+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/SequenceLocation"
1111
}
1212
],
1313
"discriminator": {

schema/vrs/json/MolecularVariation

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/MolecularVariation",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/MolecularVariation",
44
"title": "MolecularVariation",
55
"type": "object",
66
"maturity": "trial use",
77
"description": "A variation on a contiguous molecule.",
88
"oneOf": [
99
{
10-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Adjacency"
10+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Adjacency"
1111
},
1212
{
13-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Allele"
13+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Allele"
1414
},
1515
{
16-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/CisPhasedBlock"
16+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/CisPhasedBlock"
1717
},
1818
{
19-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/DerivativeMolecule"
19+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/DerivativeMolecule"
2020
},
2121
{
22-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Terminus"
22+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Terminus"
2323
}
2424
],
2525
"discriminator": {

schema/vrs/json/Range

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/Range",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/Range",
44
"title": "Range",
55
"type": "array",
66
"maturity": "trial use",

schema/vrs/json/ReferenceLengthExpression

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.0/json/ReferenceLengthExpression",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.0.1/json/ReferenceLengthExpression",
44
"title": "ReferenceLengthExpression",
55
"type": "object",
66
"maturity": "trial use",
@@ -53,7 +53,7 @@
5353
"length": {
5454
"oneOf": [
5555
{
56-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/Range"
56+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/Range"
5757
},
5858
{
5959
"type": "integer"
@@ -62,7 +62,7 @@
6262
"description": "The number of residues in the expressed sequence."
6363
},
6464
"sequence": {
65-
"$ref": "/ga4gh/schema/vrs/2.0.0/json/sequenceString",
65+
"$ref": "/ga4gh/schema/vrs/2.0.1/json/sequenceString",
6666
"description": "the literal Sequence encoded by the Reference Length Expression."
6767
},
6868
"repeatSubunitLength": {

0 commit comments

Comments
 (0)