-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Reimplemented FeatureContextConstraint, other branch got very messy when rebasing post- merge of commit 11848ce / pull request 102 * Added empty line at end of cat-vrs-source.yaml * Added compiled schema def and json files that were missed in pull request 102. I believe these not being committed were why tests were failing through github actions. * Ran pre-commit hook locally, which fixed trailing whitepsace errors
- Loading branch information
1 parent
11848ce
commit f766d7d
Showing
8 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
id: pr:p03372 | ||
type: CategoricalVariant | ||
description: >- | ||
An estrogen receptor that is encoded in the genome of human. | ||
label: Estrogen receptor | ||
constraints: | ||
- type: FeatureContextConstraint | ||
featureContext: | ||
id: pr:p03372 | ||
conceptType: Protein | ||
label: Estrogen receptor | ||
primaryCode: hgnc:3236 | ||
mappings: | ||
- coding: | ||
system: https://proconsortium.org | ||
code: pr:p03372 | ||
relation: exactMatch | ||
- coding: | ||
system: https://www.uniprot.org | ||
code: p03372 | ||
relation: relatedMatch | ||
- coding: | ||
system: https://www.genenames.org | ||
code: hgnc:3467 | ||
relation: relatedMatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.. warning:: This data class is at a **draft** maturity level and may \ | ||
change significantly in future releases. Maturity \ | ||
levels are described in the :ref:`maturity-model`. | ||
|
||
**Computational Definition** | ||
|
||
The feature that members of this categorical variant are associated with. | ||
|
||
**Information Model** | ||
|
||
Some FeatureContextConstraint attributes are inherited from :ref:`Constraint`. | ||
|
||
.. list-table:: | ||
:class: clean-wrap | ||
:header-rows: 1 | ||
:align: left | ||
:widths: auto | ||
|
||
* - Field | ||
- Flags | ||
- Type | ||
- Limits | ||
- Description | ||
* - type | ||
- | ||
- string | ||
- 1..1 | ||
- MUST be "FeatureContextConstraint" | ||
* - featureContext | ||
- | ||
- :ref:`MappableConcept` | ||
- 1..1 | ||
- A feature identifier. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://w3id.org/ga4gh/schema/cat-vrs/1.x/json/FeatureContextConstraint", | ||
"title": "FeatureContextConstraint", | ||
"type": "object", | ||
"maturity": "draft", | ||
"description": "The feature that members of this categorical variant are associated with.", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "FeatureContextConstraint", | ||
"default": "FeatureContextConstraint", | ||
"description": "MUST be \"FeatureContextConstraint\"" | ||
}, | ||
"featureContext": { | ||
"description": "A feature identifier.", | ||
"$ref": "/ga4gh/schema/gks-core/1.0.0-snapshot.2025-02.2/json/MappableConcept" | ||
} | ||
}, | ||
"required": [ | ||
"featureContext", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
} |