-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
design refinement of existing CatVrs recipes #64
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ $defs: | |
|
||
CategoricalVariant: | ||
type: object | ||
inherits: gks-core:DomainEntity | ||
inherits: gks-core:Entity | ||
maturity: draft | ||
description: >- | ||
A representation of a categorically-defined domain for variation, in which individual | ||
|
@@ -42,6 +42,14 @@ $defs: | |
ordered: false | ||
items: | ||
$ref: "#/$defs/Constraint" | ||
mappings: | ||
type: array | ||
ordered: false | ||
items: | ||
$ref: "/ga4gh/schema/gks-core/1.x/json/ConceptMapping" | ||
description: >- | ||
A list of mappings to concepts in terminologies or code systems. Each mapping should | ||
include a coding and a relation. | ||
|
||
# ============================================================================= | ||
# Constraint Definitions | ||
|
@@ -52,7 +60,8 @@ $defs: | |
description: >- | ||
Constraints are used to construct an intensional semantics of categorical variant types. | ||
oneOf: | ||
- $ref: "#/$defs/DefiningContextConstraint" | ||
- $ref: "#/$defs/DefiningAlleleContext" | ||
- $ref: "#/$defs/DefiningLocationContext" | ||
- $ref: "#/$defs/CopyCountConstraint" | ||
- $ref: "#/$defs/CopyChangeConstraint" | ||
Comment on lines
+63
to
66
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know that the word There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, have we discussed yet updating the |
||
heritableProperties: | ||
|
@@ -61,41 +70,91 @@ $defs: | |
heritableRequired: | ||
- type | ||
|
||
DefiningContextConstraint: | ||
DefiningAlleleContext: | ||
maturity: draft | ||
type: object | ||
inherits: Constraint | ||
description: >- | ||
The defining allele and its associated relationships that are congruent | ||
with member variants. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given recent thinking wrt hypothetical lower-order So, is there a reason to have the dichotomy of a Or put another way, in splitting out the |
||
properties: | ||
type: | ||
extends: type | ||
const: DefiningAlleleContext | ||
default: DefiningAlleleContext | ||
description: 'MUST be "DefiningAlleleContext"' | ||
allele: | ||
oneOf: | ||
- $ref: /ga4gh/schema/vrs/2.x/json/Allele | ||
- $ref: /ga4gh/schema/gks-core/1.x/json/IRI | ||
relations: | ||
type: array | ||
ordered: false | ||
items: | ||
type: string | ||
enum: | ||
- translates_from | ||
- translates_from_reading_frame | ||
- liftover_to | ||
- transcribes_to | ||
- translates_to | ||
- translates_through | ||
description: >- | ||
Defined relationships from which members relate to the defining context. | ||
``sequence_liftover`` refers to variants or locations that represent a congruent concept on a differing assembly of a | ||
human genome (e.g. "GRCh37" and "GRCh38") or gene (e.g. Locus Reference Genomic) sequence. ``transcript_projection`` | ||
refers to variants or locations that occur on transcripts projected from the defined genomic concept. ``codon_translation`` | ||
refers to variants or locations that translate from the codon(s) represented by the defined concept. | ||
Comment on lines
+104
to
+107
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are now out of date. Need to update with descriptions appropriate to the nee;y enumerated relations. @ahwagner what is |
||
required: | ||
- allele | ||
|
||
DefiningLocationContext: | ||
maturity: draft | ||
type: object | ||
inherits: Constraint | ||
description: >- | ||
The location or location-state, congruent with other reference sequences, | ||
about which categorical variation is being described. | ||
The defining location and its associated relationships that are congruent | ||
with member locations. | ||
properties: | ||
type: | ||
extends: type | ||
const: DefiningContextConstraint | ||
default: DefiningContextConstraint | ||
description: 'MUST be "DefiningContextConstraint"' | ||
definingContext: | ||
const: DefiningLocationContext | ||
default: DefiningLocationContext | ||
description: 'MUST be "DefiningLocationContext"' | ||
location: | ||
oneOf: | ||
- $ref: /ga4gh/schema/vrs/2.x/json/Variation | ||
- $ref: /ga4gh/schema/vrs/2.x/json/Location | ||
- $ref: /ga4gh/schema/vrs/2.x/json/SequenceLocation | ||
- $ref: /ga4gh/schema/gks-core/1.x/json/IRI | ||
relations: | ||
type: array | ||
ordered: false | ||
items: | ||
type: string | ||
enum: | ||
- sequence_liftover | ||
- transcript_projection | ||
- codon_translation | ||
- translates_from | ||
- translates_from_reading_frame | ||
- liftover_to | ||
- transcribes_to | ||
- translates_to | ||
- translates_through | ||
description: >- | ||
Defined relationships between members of the categorical variant and the defining context. | ||
Defined relationships from which members relate to the defining context. | ||
``sequence_liftover`` refers to variants or locations that represent a congruent concept on a differing assembly of a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto above, this needs to be updated in line with the new relations. |
||
human genome (e.g. "GRCh37" and "GRCh38") or gene (e.g. Locus Reference Genomic) sequence. ``transcript_projection`` | ||
refers to variants or locations that occur on transcripts projected from the defined genomic concept. ``codon_translation`` | ||
refers to variants or locations that translate from the codon(s) represented by the defined concept. | ||
matchCharacteristic: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am excited to see what this gets us. |
||
type: string | ||
description: >- | ||
A characteristic of the location that is used to match the defining location to member locations. | ||
enum: | ||
- exact | ||
- encompass | ||
- within | ||
- overlap | ||
required: | ||
- definingContext | ||
- location | ||
- matchCharacteristic | ||
|
||
CopyCountConstraint: | ||
maturity: draft | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
.. 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 defining allele and its associated relationships that are congruent with member variants. | ||
|
||
**Information Model** | ||
|
||
Some DefiningAlleleContext attributes are inherited from :ref:`Constraint`. | ||
|
||
.. list-table:: | ||
:class: clean-wrap | ||
:header-rows: 1 | ||
:align: left | ||
:widths: auto | ||
|
||
* - Field | ||
- Type | ||
- Limits | ||
- Description | ||
* - type | ||
- string | ||
- 1..1 | ||
- MUST be "DefiningAlleleContext" | ||
* - allele | ||
- :ref:`Allele` | :ref:`IRI` | ||
- 1..1 | ||
- | ||
* - relations | ||
- string | ||
- 0..m | ||
- Defined relationships from which members relate to the defining context. ``sequence_liftover`` refers to variants or locations that represent a congruent concept on a differing assembly of a human genome (e.g. "GRCh37" and "GRCh38") or gene (e.g. Locus Reference Genomic) sequence. ``transcript_projection`` refers to variants or locations that occur on transcripts projected from the defined genomic concept. ``codon_translation`` refers to variants or locations that translate from the codon(s) represented by the defined concept. |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@larrybabb I'm think we should reevaluate whether it makes sense to keep
mappings
inCategoricalVariant
.