Created
November 3, 2014 12:03
-
-
Save Relequestual/f55783834a23b8837759 to your computer and use it in GitHub Desktop.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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