Retrieve Variant Annotations for a Variant Identifier
get
/HSDataService-web/api/3.2.0/variants/{id}
This endpoint supports the retrieval of Variant Annotation for a Variant Identifier. It returns assorted Variant Annotation information that include Chromosome, Strand, Allele, Variant Type, Variant Length, Status, Assembly/Alignment Name, Ensembl Version and any Coding Region HGVS notation found. It additionally returns Annotation about any gene the variant falls in, including HUGO Name, Identifier of valid Transcripts, Gene Component Type Regions and other Reference Links
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
- id
-
Type:
integer(int64)Required:trueVariant Row ID
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Body
Root Schema : VariantAnnotation
Type:
object- alternateAllele
-
Type:
stringAlternate Allele - assembly
-
Type:
stringAssembly/Alignment Name. For ex.,GRCh38 - cancerVariants
-
Type:
stringA link containing href to retrieve Variant Cancer detailsExample:{href: '/variants/{variantRecordId}/cancer'} - chromosome
-
Type:
stringChromosome Name. For ex.,'Y' - diseaseVariants
-
Type:
stringA link containing href to retrieve Variant Disease detailsExample:{href: '/variants/{variantRecordId}/diseases'} - endPosition
-
Type:
stringEnd location of sequence - geneInfo
-
Type:
arraygeneInfoList of Variant Genes - identifier
-
Type:
objectIdentifierIdentifier assigned by a given system - referenceAllele
-
Type:
stringReference Allele - resourceType
-
Type:
string - startPosition
-
Type:
stringStart location of sequence - status
-
Type:
stringVariant Status - strand
-
Type:
stringStrand Indicator - variantEffect
-
Type:
stringA link containing href to retrieve Variant Effect detailsExample:{href: '/variants/{variantRecordId}/variantEffects'} - variantLength
-
Type:
stringVariant Length - variantPrediction
-
Type:
stringA link containing href to retrieve Variant Prediction detailsExample:{href: '/variants/{variantRecordId}/variantPredictions'} - variantType
-
Type:
stringVariant Type - variantXref
-
Type:
stringA link containing href to retrieve Variant XRef detailsExample:{href: '/variants/{variantRecordId}/variantXRef'}
Nested Schema : geneInfo
Nested Schema : Identifier
Type:
objectIdentifier assigned by a given system
- system
-
Type:
stringSystem which assigned this identifier - value
-
Type:
stringIdentifier value
Nested Schema : VariantAnnotationGene
Type:
object- gene
-
Type:
objectLinkedReference - geneComponents
-
Type:
arraygeneComponentsList of Gene Components - geneWid
-
Type:
stringGene Row ID - hgvs
-
Type:
arrayhgvsList og HGVS Notations - hugoName
-
Type:
stringApproved HUGO symbol for species loci, including protein coding genes, RNA genes and pseudogenes, e.g. 'SRY', 'DMRT1', 'FOXL2', etc.
Nested Schema : LinkedReference
Type:
object- display
-
Type:
string - reference
-
Type:
string
Nested Schema : geneComponents
Nested Schema : GeneComponent
Type:
object- ensemblVersion
-
Type:
stringEnsembl Version - transcripts
-
Type:
arraytranscriptsList of Transcripts
Nested Schema : transcripts
Nested Schema : Transcript
Type:
object- componentTypes
-
Type:
arraycomponentTypesList of Component Types - transcriptId
-
Type:
stringTranscript ID
Nested Schema : componentTypes
Nested Schema : Hgvs
Type:
object- ensemblVersion
-
Type:
stringEnsembl Version - hgvsNotations
-
Type:
arrayhgvsNotationsList of HGVS Notations
Nested Schema : hgvsNotations
400 Response
Variant Id is not supplied
Examples
The following example submits a GET request.
API URL
http://localhost:7001/HSDataService-web/api/3.2.0/variants/31486
Example of Response Body
The following example shows the response returned in JSON format.
{
"resourceType" : "VariantDetails",
"identifier" : {
"system" : "ODB",
"value" : "31486"
},
"chromosome" : "1",
"startPosition" : "1647871",
"endPosition" : "1647871",
"strand" : "+",
"referenceAllele" : "T",
"alternateAllele" : "C",
"variantType" : "substitution",
"variantLength" : "1",
"status" : "KNOWN",
"assembly" : "GRCh37",
"geneInfo" : [ {
"geneWid" : "137",
"hugoName" : "CDK11A",
"hgvs" : [ {
"ensemblVersion" : "GRCH37.75",
"hgvsNotations" : [ "ENST00000404249(CDK11A):c.402A>G", "ENST00000358779(CDK11A):c.372A>G", "ENST00000509982(CDK11A):c.402A>G"]
} ],
"geneComponents" : [ {
"ensemblVersion" : "GRCH37.75",
"transcripts" : [ {
"transcriptId" : "ENST00000509982",
"componentTypes" : [ "CDS", "mRNA" ]
}, {
"componentTypes" : [ "exon" ]
}, {
"transcriptId" : "ENST00000357760",
"componentTypes" : [ "CDS", "mRNA" ]
}]
} ],
"gene" : {
"reference" : "/HSDataService-web/api/3.2.0/genes/137"
}
}, {
"geneWid" : "138",
"hugoName" : "RP1-283E3.8",
"geneComponents" : [ {
"ensemblVersion" : "GRCH37.75",
"transcripts" : [ {
"componentTypes" : [ "exon" ]
}, {
"transcriptId" : "ENST00000598846",
"componentTypes" : [ "misc_RNA" ]
} ]
} ],
"gene" : {
"reference" : "/HSDataService-web/api/3.2.0/genes/138"
}
} ],
"variantXref" : {
"reference" : "/HSDataService-web/api/3.2.0/variants/31486/variantXRef"
},
"variantPrediction" : {
"reference" : "/HSDataService-web/api/3.2.0/variants/31486/variantPredictions"
},
"variantEffect" : {
"reference" : "/HSDataService-web/api/3.2.0/variants/31486/variantEffects"
},
"diseaseVariants" : {
"reference" : "/HSDataService-web/api/3.2.0/variants/31486/diseases"
},
"cancerVariants" : {
"reference" : "/HSDataService-web/api/3.2.0/variants/31486/cancer"
}
}