Skip to content

Commit

Permalink
Merge pull request #100 from opentargets/ag_variant_changes
Browse files Browse the repository at this point in the history
Ag variant changes
  • Loading branch information
Asier Gonzalez authored Nov 6, 2020
2 parents b81a112 + e2776a7 commit fcad3d7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
21 changes: 18 additions & 3 deletions draft4_schemas/opentargets.json
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,11 @@
"description": "An array of variant identifiers",
"pattern": "^http://www.ncbi.nlm.nih.gov/clinvar/RCV[0-9]{9}|http://www.ncbi.nlm.nih.gov/clinvar/variation/VCV[0-9]{9}|http://identifiers.org/dbsnp/rs[0-9]{1,}|http://identifiers.org/dbsnp/esv[0-9]{1,}|http://identifiers.org/dbsnp/nsv[0-9]{1,}|.{1,2}_[0-9]+_[ACTG]+_[ACTG]+$"
},
"rs_id":{
"type": "string",
"description": "RS id of the variant",
"pattern": "^rs[0-9]{1,}$"
},
"secondary_id": {
"type": "string",
"description": "Optional RS id to be used as secondary variant id",
Expand All @@ -722,9 +727,19 @@
]
}
},
"required": [
"id",
"type"
"anyOf": [
{
"required": [
"id",
"type"
]
},
{
"required": [
"rs_id",
"type"
]
}
]
},
"evidence": {
Expand Down
21 changes: 18 additions & 3 deletions opentargets.json
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@
"description": "An array of variant identifiers",
"pattern": "^http://www.ncbi.nlm.nih.gov/clinvar/RCV[0-9]{9}|http://www.ncbi.nlm.nih.gov/clinvar/variation/VCV[0-9]{9}|http://identifiers.org/dbsnp/rs[0-9]{1,}|http://identifiers.org/dbsnp/esv[0-9]{1,}|http://identifiers.org/dbsnp/nsv[0-9]{1,}|.{1,2}_[0-9]+_[ACTG]+_[ACTG]+$"
},
"rs_id":{
"type": "string",
"description": "RS id of the variant",
"pattern": "^rs[0-9]{1,}$"
},
"secondary_id":{
"type": "string",
"description": "Optional RS id to be used as secondary variant id",
Expand All @@ -718,9 +723,19 @@
]
}
},
"required": [
"id",
"type"
"anyOf": [
{
"required": [
"id",
"type"
]
},
{
"required": [
"rs_id",
"type"
]
}
]
},
"evidence": {
Expand Down

0 comments on commit fcad3d7

Please sign in to comment.