Retrieve Variant Annotations for a Variant Identifier
get
/ohfapi/cg/v3.3/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: integer(int64)
Variant Row ID
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Root Schema : VariantAnnotation
Type:
Show Source
object
-
alternateAllele(optional):
string
Alternate Allele
-
assembly(optional):
string
Assembly/Alignment Name. For ex.,GRCh38
-
cancerVariants(optional):
string
A link containing href to retrieve Variant Cancer detailsExample:
{href: '/variants/{variantRecordId}/cancer'}
-
chromosome(optional):
string
Chromosome Name. For ex.,'Y'
-
diseaseVariants(optional):
string
A link containing href to retrieve Variant Disease detailsExample:
{href: '/variants/{variantRecordId}/diseases'}
-
endPosition(optional):
string
End location of sequence
-
geneInfo(optional):
array geneInfo
List of Variant Genes
-
identifier(optional):
object Identifier
Identifier assigned by a given system
-
referenceAllele(optional):
string
Reference Allele
-
resourceType(optional):
string
-
startPosition(optional):
string
Start location of sequence
-
status(optional):
string
Variant Status
-
strand(optional):
string
Strand Indicator
-
variantEffect(optional):
string
A link containing href to retrieve Variant Effect detailsExample:
{href: '/variants/{variantRecordId}/variantEffects'}
-
variantLength(optional):
string
Variant Length
-
variantPrediction(optional):
string
A link containing href to retrieve Variant Prediction detailsExample:
{href: '/variants/{variantRecordId}/variantPredictions'}
-
variantType(optional):
string
Variant Type
-
variantXref(optional):
string
A link containing href to retrieve Variant XRef detailsExample:
{href: '/variants/{variantRecordId}/variantXRef'}
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 : VariantAnnotationGene
Type:
Show Source
object
-
gene(optional):
object LinkedReference
-
geneComponents(optional):
array geneComponents
List of Gene Components
-
geneWid(optional):
string
Gene Row ID
-
hgvs(optional):
array hgvs
List og HGVS Notations
-
hugoName(optional):
string
Approved HUGO symbol for species loci, including protein coding genes, RNA genes and pseudogenes, e.g. 'SRY', 'DMRT1', 'FOXL2', etc.
Nested Schema : GeneComponent
Type:
Show Source
object
-
ensemblVersion(optional):
string
Ensembl Version
-
transcripts(optional):
array transcripts
List of Transcripts
Nested Schema : Transcript
Type:
Show Source
object
-
componentTypes(optional):
array componentTypes
List of Component Types
-
transcriptId(optional):
string
Transcript ID
Nested Schema : Hgvs
Type:
Show Source
object
-
ensemblVersion(optional):
string
Ensembl Version
-
hgvsNotations(optional):
array hgvsNotations
List of HGVS Notations
400 Response
Variant Id is not supplied
Examples
The following example submits a GET request.
API URL
http://localhost:7010/ohfapi/cg/v3.3/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" : "/ohfapi/cg/v3.3/genes/137" } }, { "geneWid" : "138", "hugoName" : "RP1-283E3.8", "geneComponents" : [ { "ensemblVersion" : "GRCH37.75", "transcripts" : [ { "componentTypes" : [ "exon" ] }, { "transcriptId" : "ENST00000598846", "componentTypes" : [ "misc_RNA" ] } ] } ], "gene" : { "reference" : "/ohfapi/cg/v3.3/genes/138" } } ], "variantXref" : { "reference" : "/ohfapi/cg/v3.3/variants/31486/variantXRef" }, "variantPrediction" : { "reference" : "/ohfapi/cg/v3.3/variants/31486/variantPredictions" }, "variantEffect" : { "reference" : "/ohfapi/cg/v3.3/variants/31486/variantEffects" }, "diseaseVariants" : { "reference" : "/ohfapi/cg/v3.3/variants/31486/diseases" }, "cancerVariants" : { "reference" : "/ohfapi/cg/v3.3/variants/31486/cancer" } }