Skip to content

Commit 4ea4669

Browse files
committed
rocking absolute paths
1 parent 23846a7 commit 4ea4669

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+252
-264
lines changed

.requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jsonschema
33
referencing
44
ipython
55
pyyaml
6-
ga4gh.gks.metaschema==0.3.0b5
6+
ga4gh.gks.metaschema==0.3.0b6
77
sphinx ~= 7.2
88
sphinx-rtd-theme ~= 1.2
99
jupyterlab

notebooks/referencing.ipynb

+72-116
Large diffs are not rendered by default.

schema/Makefile

+3-38
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,5 @@
1-
.SECONDARY:
2-
.DELETE_ON_ERROR:
3-
4-
BUILD_DIR := build
5-
IMPORT_DIR := import
6-
7-
vpath %tag $(BUILD_DIR)
8-
vpath %.classes $(BUILD_DIR)
9-
10-
SOURCES := $(wildcard *-source.yaml)
11-
TAGS := $(SOURCES:-source.yaml=.tag)
12-
IMPORTS := $(wildcard $(IMPORT_DIR)/*-source.yaml)
13-
14-
all: build-ordered ${TAGS} prune-tag
15-
16-
build-ordered: | $(BUILD_DIR)
17-
18-
$(BUILD_DIR):
19-
mkdir $(BUILD_DIR)
20-
21-
%.tag: %.classes %.json-tag %.defs-tag
22-
touch $(BUILD_DIR)/$@
23-
24-
%.classes: %-source.yaml
25-
source2classes.py $< >${BUILD_DIR}/$@
26-
27-
%.json-tag: %-source.yaml ${IMPORTS}
28-
source2splitjs.py $<
29-
touch $(BUILD_DIR)/$@
30-
31-
%.defs-tag: %-source.yaml ${IMPORTS}
32-
y2t.py $<
33-
touch $(BUILD_DIR)/$@
34-
35-
prune-tag: ${TAGS}
36-
$(MAKE) -f prune.mk
37-
touch $(BUILD_DIR)/$@
1+
all:
2+
(cd vrs; make all)
383

394
clean:
40-
rm $(BUILD_DIR)/*
5+
(cd vrs; make clean)

schema/gks-common

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../submodules/gks-common/schema/gks-common

schema/import/gks-common

-1
This file was deleted.

schema/json/Variation.json

-26
This file was deleted.

schema/json/import/gks-common

-1
This file was deleted.

schema/vrs/Makefile

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.SECONDARY:
2+
.DELETE_ON_ERROR:
3+
4+
BUILD_DIR := build
5+
IMPORT_DIR := import
6+
7+
vpath %tag $(BUILD_DIR)
8+
vpath %.classes $(BUILD_DIR)
9+
10+
SOURCES := $(wildcard *-source.yaml)
11+
TAGS := $(SOURCES:-source.yaml=.tag)
12+
IMPORTS := $(wildcard $(IMPORT_DIR)/*-source.yaml)
13+
14+
all: build-ordered ${TAGS} prune-tag
15+
16+
build-ordered: | $(BUILD_DIR)
17+
18+
$(BUILD_DIR):
19+
mkdir $(BUILD_DIR)
20+
21+
%.tag: %.classes %.json-tag %.defs-tag
22+
touch $(BUILD_DIR)/$@
23+
24+
%.classes: %-source.yaml
25+
source2classes.py $< >${BUILD_DIR}/$@
26+
27+
%.json-tag: %-source.yaml ${IMPORTS}
28+
source2splitjs.py $<
29+
touch $(BUILD_DIR)/$@
30+
31+
%.defs-tag: %-source.yaml ${IMPORTS}
32+
y2t.py $<
33+
touch $(BUILD_DIR)/$@
34+
35+
prune-tag: ${TAGS}
36+
$(MAKE) -f prune.mk
37+
touch $(BUILD_DIR)/$@
38+
39+
clean:
40+
rm $(BUILD_DIR)/*

schema/def/Adjacency.rst renamed to schema/vrs/def/Adjacency.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some Adjacency attributes are inherited from :ref:`Variation`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
@@ -45,7 +45,7 @@ Some Adjacency attributes are inherited from :ref:`Variation`.
4545
- 0..m
4646
-
4747
* - adjoinedSequences
48-
- `IRI.json <import/gks-common/IRI.json>`_ | :ref:`Location`
48+
- `IRI.json <../gks-common/$defs/IRI.json>`_ | :ref:`Location`
4949
- 1..2
5050
- The terminal sequence or pair of adjoined sequences that defines in the adjacency.
5151
* - linker

schema/def/Allele.rst renamed to schema/vrs/def/Allele.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some Allele attributes are inherited from :ref:`Variation`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
@@ -45,7 +45,7 @@ Some Allele attributes are inherited from :ref:`Variation`.
4545
- 0..m
4646
-
4747
* - location
48-
- `IRI.json <import/gks-common/IRI.json>`_ | :ref:`Location`
48+
- `IRI.json <../gks-common/$defs/IRI.json>`_ | :ref:`Location`
4949
- 1..1
5050
- The location of the Allele
5151
* - state

schema/def/CopyNumber.rst renamed to schema/vrs/def/CopyNumber.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some CopyNumber attributes are inherited from :ref:`Variation`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
@@ -45,6 +45,6 @@ Some CopyNumber attributes are inherited from :ref:`Variation`.
4545
- 0..m
4646
-
4747
* - location
48-
- `IRI.json <import/gks-common/IRI.json>`_ | :ref:`Location`
48+
- `IRI.json <../gks-common/$defs/IRI.json>`_ | :ref:`Location`
4949
- 1..1
5050
- A location for which the number of systemic copies is described.

schema/def/CopyNumberChange.rst renamed to schema/vrs/def/CopyNumberChange.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some CopyNumberChange attributes are inherited from :ref:`CopyNumber`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
@@ -45,7 +45,7 @@ Some CopyNumberChange attributes are inherited from :ref:`CopyNumber`.
4545
- 0..m
4646
-
4747
* - location
48-
- `IRI.json <import/gks-common/IRI.json>`_ | :ref:`Location`
48+
- `IRI.json <../gks-common/$defs/IRI.json>`_ | :ref:`Location`
4949
- 1..1
5050
- A location for which the number of systemic copies is described.
5151
* - copyChange

schema/def/CopyNumberCount.rst renamed to schema/vrs/def/CopyNumberCount.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some CopyNumberCount attributes are inherited from :ref:`CopyNumber`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
@@ -45,7 +45,7 @@ Some CopyNumberCount attributes are inherited from :ref:`CopyNumber`.
4545
- 0..m
4646
-
4747
* - location
48-
- `IRI.json <import/gks-common/IRI.json>`_ | :ref:`Location`
48+
- `IRI.json <../gks-common/$defs/IRI.json>`_ | :ref:`Location`
4949
- 1..1
5050
- A location for which the number of systemic copies is described.
5151
* - copies
File renamed without changes.

schema/def/Ga4ghIdentifiableObject.rst renamed to schema/vrs/def/Ga4ghIdentifiableObject.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some Ga4ghIdentifiableObject attributes are inherited from :ref:`gks.core:Entity
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type

schema/def/Haplotype.rst renamed to schema/vrs/def/Haplotype.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some Haplotype attributes are inherited from :ref:`Variation`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
@@ -45,6 +45,6 @@ Some Haplotype attributes are inherited from :ref:`Variation`.
4545
- 0..m
4646
-
4747
* - members
48-
- :ref:`Adjacency` | :ref:`Allele` | `IRI.json <import/gks-common/IRI.json>`_
48+
- :ref:`Adjacency` | :ref:`Allele` | `IRI.json <../gks-common/$defs/IRI.json>`_
4949
- 2..m
5050
- A list of :ref:`Alleles <Allele>` and :ref:`Adjacencies <Adjacency>` that comprise a Haplotype. Members must share the same reference sequence as adjacent members. Alleles should not have overlapping or adjacent coordinates with neighboring Alleles. Neighboring alleles should be ordered by ascending coordinates, unless represented on a DNA inversion (following an Adjacency with end-defined adjoinedSequences), in which case they should be ordered in descending coordinates. Sequence references MUST be consistent for all members between and including the end of one Adjacency and the beginning of another.

schema/def/LengthExpression.rst renamed to schema/vrs/def/LengthExpression.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some LengthExpression attributes are inherited from :ref:`SequenceExpression`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type

schema/def/LiteralSequenceExpression.rst renamed to schema/vrs/def/LiteralSequenceExpression.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some LiteralSequenceExpression attributes are inherited from :ref:`SequenceExpre
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
File renamed without changes.
File renamed without changes.

schema/def/ReferenceLengthExpression.rst renamed to schema/vrs/def/ReferenceLengthExpression.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some ReferenceLengthExpression attributes are inherited from :ref:`SequenceExpre
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
File renamed without changes.

schema/def/SequenceExpression.rst renamed to schema/vrs/def/SequenceExpression.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some SequenceExpression attributes are inherited from :ref:`gks.core:Entity`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type

schema/def/SequenceLocation.rst renamed to schema/vrs/def/SequenceLocation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some SequenceLocation attributes are inherited from :ref:`Ga4ghIdentifiableObjec
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
@@ -41,7 +41,7 @@ Some SequenceLocation attributes are inherited from :ref:`Ga4ghIdentifiableObjec
4141
- 0..1
4242
- A sha512t24u digest created using the VRS Computed Identifier algorithm.
4343
* - sequenceReference
44-
- `IRI.json <import/gks-common/IRI.json>`_ | :ref:`SequenceReference`
44+
- `IRI.json <../gks-common/$defs/IRI.json>`_ | :ref:`SequenceReference`
4545
- 0..1
4646
- A :ref:`SequenceReference`.
4747
* - start

schema/def/SequenceReference.rst renamed to schema/vrs/def/SequenceReference.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some SequenceReference attributes are inherited from :ref:`gks.core:Entity`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type
File renamed without changes.
File renamed without changes.

schema/def/Variation.rst renamed to schema/vrs/def/Variation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Some Variation attributes are inherited from :ref:`Ga4ghIdentifiableObject`.
2929
- 0..1
3030
- A free-text description of the entity.
3131
* - extensions
32-
- `Extension <import/gks-common/core.json#/$defs/Extension>`_
32+
- `Extension <../gks-common/core.json#/$defs/Extension>`_
3333
- 0..m
3434
-
3535
* - type

schema/json/Adjacency.json renamed to schema/vrs/json/Adjacency

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://w3id.org/ga4gh/schema/vrs/2.x/json/Adjacency",
34
"title": "Adjacency",
45
"type": "object",
56
"maturity": "draft",
@@ -29,7 +30,7 @@
2930
"type": "array",
3031
"ordered": true,
3132
"items": {
32-
"$ref": "import/gks-common/Extension.json"
33+
"$ref": "/ga4gh/schema/gks-common/1.x/json/Extension"
3334
}
3435
},
3536
"type": {
@@ -47,7 +48,7 @@
4748
"type": "array",
4849
"ordered": false,
4950
"items": {
50-
"$ref": "Expression.json"
51+
"$ref": "/ga4gh/schema/vrs/2.x/json/Expression"
5152
}
5253
},
5354
"adjoinedSequences": {
@@ -57,10 +58,10 @@
5758
"items": {
5859
"oneOf": [
5960
{
60-
"$ref": "SequenceLocation.json"
61+
"$ref": "/ga4gh/schema/vrs/2.x/json/SequenceLocation"
6162
},
6263
{
63-
"$ref": "import/gks-common/IRI.json"
64+
"$ref": "/ga4gh/schema/gks-common/1.x/json/IRI"
6465
}
6566
]
6667
},
@@ -72,13 +73,13 @@
7273
"description": "The sequence found between adjoined sequences.",
7374
"oneOf": [
7475
{
75-
"$ref": "LengthExpression.json"
76+
"$ref": "/ga4gh/schema/vrs/2.x/json/LengthExpression"
7677
},
7778
{
78-
"$ref": "LiteralSequenceExpression.json"
79+
"$ref": "/ga4gh/schema/vrs/2.x/json/LiteralSequenceExpression"
7980
},
8081
{
81-
"$ref": "ReferenceLengthExpression.json"
82+
"$ref": "/ga4gh/schema/vrs/2.x/json/ReferenceLengthExpression"
8283
}
8384
]
8485
}

0 commit comments

Comments
 (0)