Skip to content

Commit

Permalink
update schema guidance for start/end
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwagner committed Dec 16, 2024
1 parent de029e5 commit d9450f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions schema/vrs/def/SequenceLocation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ Some SequenceLocation attributes are inherited from :ref:`Ga4ghIdentifiableObjec
-
- integer | :ref:`Range`
- 0..1
- The start coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. MUST represent a coordinate or range less than or equal to the value of `end`.
- The start coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. For locations on linear sequences, this MUST represent a coordinate or range less than or equal to the value of `end`. For circular sequences, `start` is greater than `end` when the location spans the sequence 0 coordinate.
* - end
-
- integer | :ref:`Range`
- 0..1
- The end coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. MUST represent a coordinate or range greater than or equal to the value of `start`.
- The end coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. For locations on linear sequences, this MUST represent a coordinate or range grater than or equal to the value of `start`. For circular sequences, `end` is less than `start` when the location spans the sequence 0 coordinate.
* - sequence
-
- :ref:`sequenceString`
Expand Down
4 changes: 2 additions & 2 deletions schema/vrs/json/SequenceLocation
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"type": "integer"
}
],
"description": "The start coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. MUST represent a coordinate or range less than or equal to the value of `end`."
"description": "The start coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. For locations on linear sequences, this MUST represent a coordinate or range less than or equal to the value of `end`. For circular sequences, `start` is greater than `end` when the location spans the sequence 0 coordinate."
},
"end": {
"oneOf": [
Expand All @@ -87,7 +87,7 @@
"type": "integer"
}
],
"description": "The end coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. MUST represent a coordinate or range greater than or equal to the value of `start`."
"description": "The end coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. For locations on linear sequences, this MUST represent a coordinate or range grater than or equal to the value of `start`. For circular sequences, `end` is less than `start` when the location spans the sequence 0 coordinate."
},
"sequence": {
"description": "The literal sequence encoded by the `sequenceReference` at these coordinates.",
Expand Down
8 changes: 6 additions & 2 deletions schema/vrs/vrs-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,19 @@ $defs:
description: >-
The start coordinate or range of the SequenceLocation.
The minimum value of this coordinate or range is 0.
MUST represent a coordinate or range less than or equal to the value of `end`.
For locations on linear sequences, this MUST represent a coordinate or range
less than or equal to the value of `end`. For circular sequences, `start` is
greater than `end` when the location spans the sequence 0 coordinate.
end:
oneOf:
- type: integer
- $ref: "#/$defs/Range"
description: >-
The end coordinate or range of the SequenceLocation.
The minimum value of this coordinate or range is 0.
MUST represent a coordinate or range greater than or equal to the value of `start`.
For locations on linear sequences, this MUST represent a coordinate or range
grater than or equal to the value of `start`. For circular sequences, `end` is
less than `start` when the location spans the sequence 0 coordinate.
sequence:
description: >-
The literal sequence encoded by the `sequenceReference` at these coordinates.
Expand Down

0 comments on commit d9450f4

Please sign in to comment.