Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MatchMakerExchange Search Request json-schema file which can be used for validation of MME requests. This is used in the Decipher project at time of posting.
{
"type":"object",
"$schema": "http://json-schema.org/draft-03/schema",
"title": "MatchMakerExchange Search Request",
"name": "MatchMakerExchangeSearchRequest",
"required":true,
"properties":{
"id": {
"type":"string",
"maxLength":255,
"required":true
},
"queryType": {
"enum": ["once", "periodic" ]
},
"label": {
"type":"string",
"maxLength":255
},
"submitter": {
"type":"object",
"properties":{
"email": {
"type":"string",
"format":"email"
},
"institution": {
"type":"string"
},
"name": {
"type":"string"
}
}
},
"gender": {
"enum": ["M", "F"]
},
"ageOfOnset": {
"description": "An HPO id term assocaited with an age interval http://www.human-phenotype-ontology.org/hpoweb/showterm?id=HP:0011007",
"enum": ["HP:0003577","HP:0011460","HP:0011461","HP:0003623","HP:0003593","HP:0011463","HP:0003621","HP:0003581","HP:0011462","HP:0003596","HP:0003584"]
},
"inheritanceMode": {
"enum": ["ad", "ar", "xd", "xr", "yl", "mi", "ic", "un"]
},
"disorders": {
"type":"array",
"items":
{
"pattern":"^(MIM:|ORPHA)\\d{1,6}$"
}
},
"features": {
"type":"array",
"items":
{
"type":"object",
"properties":{
"id": {
"type":"string"
},
"observed": {
"enum": ["yes", "no", "unknown"]
},
"ageOfOnset": {
"description": "An HPO id term assocaited with an age interval http://www.human-phenotype-ontology.org/hpoweb/showterm?id=HP:0011007",
"enum": ["HP:0003577","HP:0011460","HP:0011461","HP:0003623","HP:0003593","HP:0011463","HP:0003621","HP:0003581","HP:0011462","HP:0003596","HP:0003584"]
}
}
}
},
"genes": {
"type":"array",
"items":
{
"type":"object",
"properties":{
"gene": {
"type":"string",
"required":true
},
"referenceName": {
"pattern":"^(([1-9]|1[1-9]|2[1-2])|[XY])$"
},
"start": {
"type":"number"
},
"end": {
"type":"number"
},
"referenceBase": {
"pattern":"^([ATCG]+)$"
},
"alternativeBase": {
"pattern":"^([ATCG]+)$"
},
"zygosity": {
"pattern":"^[12]$"
},
"type": {
"enum":["TRUNCATING","ALTERING","SPLICING","UTR","INTRONIC","PROXIMAL","OTHER"]
},
"assembly": {
"pattern":"^NCBI36|GRCh\\d{2}(\\.p\\d{1,2})*?$",
"required":true
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.