Retrieve Variant References for a Variant Identifier
get
/ohfapi/cg/v3.3/variants/{id}/variantXRef
This endpoints supports the retrieval of Variant References information for a Variant Identifier. It returns Variant Reference information like Database, Reference Identifier and other Reference associated information.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
-
id: integer(int64)
Variant Row ID
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Root Schema : VariantXRefs
Type:
Show Source
object
-
resourceType(optional):
string
-
variantIdentifier(optional):
object Identifier
Identifier assigned by a given system
-
variantReferences(optional):
object LinkedReference
-
variantXref(optional):
array variantXref
List of Variant XRef Information
Nested Schema : Identifier
Type:
object
Identifier assigned by a given system
Show Source
-
system(optional):
string
System which assigned this identifier
-
value(optional):
string
Identifier value
Nested Schema : VariantXRef
Type:
Show Source
object
-
database(optional):
string
Database Name. For ex.,dbSNP_142
-
referenceId(optional):
string
Reference ID to External Database. For ex.,rs13079411
400 Response
Invalid parameters supplied
404 Response
Variant varaint XRef(s) not found
Examples
The following example submits a GET request.
API URL
http://localhost:7010/ohfapi/cg/v3.3/variants/536777/variantXRef
Example of Response Body
The following example shows the response returned in JSON format.
{ "resourceType" : "VariantXRef", "variantIdentifier" : { "system" : "ODB", "value" : "536777" }, "variantXref" : [ { "database" : "dbSNP_138", "referenceId" : "rs137927599" } ], "variantReferences" : { "reference" : "/ohfapi/cg/v3.3/variants/536777" } }