Skip to content

Commit

Permalink
Merge pull request #419 from mbaudis/patch-2
Browse files Browse the repository at this point in the history
relative_copy_class  -> copy_assessment in `CopyNumberChange` example
  • Loading branch information
ahwagner committed Apr 2, 2023
2 parents 3ba3ed0 + 00d2dca commit f5f0feb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/source/terms_and_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Low-level copy gain of BRCA1:
.. parsed-literal::
{
"relative_copy_class": "EFO_0030071", # low-level gain
"copy_change": "EFO_0030071", # low-level gain
"subject": {
"gene_id": "ncbigene:348", # BRCA1 gene
"type": "Gene"
Expand Down
2 changes: 1 addition & 1 deletion schema/defs/vrs/CopyNumberChange.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Some CopyNumberChange attributes are inherited from :ref:`Variation`.
- :ref:`Location` | :ref:`CURIE` | :ref:`Feature`
- 1..1
- A location for which the number of systemic copies is described.
* - copy_assessment
* - copy_change
- string
- 1..1
- MUST be 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).
4 changes: 2 additions & 2 deletions schema/vrs-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ definitions:
- $ref: "#/definitions/Feature"
description: >-
A location for which the number of systemic copies is described.
copy_assessment:
copy_change:
type: string
enum: [ "EFO_0030069", "EFO_0020073", "EFO_0030068", "EFO_0030067", "EFO_0030064", "EFO_0030070", "EFO_0030071", "EFO_0030072" ]
description: >-
MUST be 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).
required: [ "subject", "copy_assessment" ]
required: [ "subject", "copy_change" ]

Genotype:
inherits: SystemicVariation
Expand Down
4 changes: 2 additions & 2 deletions schema/vrs.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
],
"description": "A location for which the number of systemic copies is described."
},
"copy_assessment": {
"copy_change": {
"type": "string",
"enum": [
"EFO_0030069",
Expand All @@ -357,7 +357,7 @@
}
},
"required": [
"copy_assessment",
"copy_change",
"subject",
"type"
],
Expand Down
4 changes: 2 additions & 2 deletions schema/vrs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ definitions:
- $ref: '#/definitions/Gene'
- $ref: '#/definitions/SequenceLocation'
description: A location for which the number of systemic copies is described.
copy_assessment:
copy_change:
type: string
enum:
- EFO_0030069
Expand All @@ -220,7 +220,7 @@ definitions:
"EFO_0030064" (regional base ploidy), "EFO_0030070" (gain), "EFO_0030071"
(low-level gain), "EFO_0030072" (high-level gain).
required:
- copy_assessment
- copy_change
- subject
- type
additionalProperties: false
Expand Down
8 changes: 4 additions & 4 deletions validation/models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ CopyNumberCount:
CopyNumberChange:
- name: "Low-level copy gain of BRCA1"
in:
copy_assessment: EFO_0030071
copy_change: EFO_0030071
subject:
sequence_id: ga4gh:SQ.IIB53T8CNeJJdUqzn9V_JnRtQadwWCbl
interval:
Expand All @@ -396,9 +396,9 @@ CopyNumberChange:
type: SequenceLocation
type: CopyNumberChange
out:
ga4gh_digest: MLA_TGdelT-_jrlsC6N19S2itmcWqHfj
ga4gh_identify: ga4gh:CX.MLA_TGdelT-_jrlsC6N19S2itmcWqHfj
ga4gh_serialize: '{"copy_assessment":"EFO_0030071","subject":"oz3NEuhtbBep3yqu3wrhqfDKbLPK7vcE","type":"CopyNumberChange"}'
ga4gh_digest: W6Mr7EOuc8_oP--jzFqZeAj-ZC7pK9F_
ga4gh_identify: ga4gh:CX.W6Mr7EOuc8_oP--jzFqZeAj-ZC7pK9F_
ga4gh_serialize: '{"copy_change":"EFO_0030071","subject":"oz3NEuhtbBep3yqu3wrhqfDKbLPK7vcE","type":"CopyNumberChange"}'
Text:
-
in:
Expand Down

0 comments on commit f5f0feb

Please sign in to comment.