Skip to content

Commit

Permalink
Merge pull request #278 from alliance-genome/Add-synonyms-slot-to-Var…
Browse files Browse the repository at this point in the history
…iant-and-VariantDTO

Add synonyms slot to Variant and VariantDTO
  • Loading branch information
chris-grove authored Dec 17, 2024
2 parents 6118279 + 21d6be5 commit 6a0e13c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions generated/jsonschema/allianceModel.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24744,6 +24744,13 @@
},
"type": "array"
},
"synonyms": {
"description": "A generic free-text field for objects that only have string representation of one or more synonyms and do not require meta data or attribution; if meta data or attribution are required to be captured for individual synonyms, consider the NameSlotAnnotation class",
"items": {
"type": "string"
},
"type": "array"
},
"taxon": {
"description": "The taxon from which the biological entity derives.",
"type": "string"
Expand Down Expand Up @@ -24836,6 +24843,13 @@
},
"type": "array"
},
"synonyms": {
"description": "A generic free-text field for objects that only have string representation of one or more synonyms and do not require meta data or attribution; if meta data or attribution are required to be captured for individual synonyms, consider the NameSlotAnnotation class",
"items": {
"type": "string"
},
"type": "array"
},
"taxon_curie": {
"description": "Curie of the NCBITaxonTerm representing the taxon from which the biological entity derives",
"type": "string"
Expand Down
1 change: 1 addition & 0 deletions model/schema/variantDTO.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ classes:
slots:
- variant_type_curie
- note_dtos
- synonyms
- source_general_consequence_dtos
- variant_status_name

Expand Down
1 change: 1 addition & 0 deletions model/schema/variation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ classes:
slots:
- variant_type
- related_notes
- synonyms
- source_general_consequences
- curated_variant_genomic_locations
- curated_variant_transcript_locations
Expand Down
3 changes: 3 additions & 0 deletions test/data/variant_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"variant_ingest_set": [
{
"primary_external_id": "ZFIN:ZDB-ALT-000412-8",
"synonyms": [
"name: I:g.118901G>A"
],
"data_provider_dto": {
"source_organization_abbreviation": "ZFIN",
"cross_reference_dto": {
Expand Down

0 comments on commit 6a0e13c

Please sign in to comment.