Retrieve Variants for Chromosome and Allele
get
/HSDataService-web/api/3.2.0/variants/byChromosome/byAllele
This endpoint supports the retrieval of Variant Identifiers for Chromosome, Start Position, Allele and Assembly/Alignment Identifier.
Request
Supported Media Types
- application/json
- application/xml
Query Parameters
- alignmentId
-
Type:
integer(int64)Required:trueAssembly/Alignment ID- allele
Type:stringRequired:trueAllele- chromosome
Type:stringRequired:trueChromosome Name. For ex.,'Y'- limit
Type:integer(int32)Number of rows to return- offset
Type:integer(int32)Row number to start from- startPosition
Type:integer(int64)Required:trueStart location of sequenceResponse
Supported Media Types- application/json
- application/xml
200 Responsesuccessful operationBodyModel for paginated collections of data.Root Schema : PageableCollectionVariantType:objectModel for paginated collections of data.- count
-
Type:
integer(int64)Number of objects in the 'items' collection. - hasMore
-
Type:
booleanDefault Value:falseA boolean indicating if more pages are available. - items
-
Type:
arrayitemsA collection of paged items. - links
-
Type:
arraylinksA collection of links containing hrefs to the current, next, and previous pages as applicable. - resourceType
-
Type:
stringIdentify the resource type
Nested Schema : linksNested Schema : VariantType:object- identifier
-
Type:
objectIdentifierIdentifier assigned by a given system - variantPrediction
-
Type:
objectLinkedReference
Nested Schema : IdentifierType:objectIdentifier assigned by a given system- system
-
Type:
stringSystem which assigned this identifier - value
-
Type:
stringIdentifier value
Nested Schema : LinkedReferenceType:object- display
-
Type:
string - reference
-
Type:
string
400 ResponseFilter Variants input is not valid404 ResponseVariants not found for the Allele and Chromosome details suppliedExamples
The following example submits a GET request.
API URL
http://localhost:7001/HSDataService-web/api/3.2.0/variants/byChromosome/byAllele?alignmentId=1&chromosome=CHR20&startPosition=3&allele=G
Example of Response Body
The following example shows the contents of the response body in JSON format:
{ "resourceType" : "Variants", "items" : [ { "identifier" : { "system" : "ODB", "value" : "62935272" } } ], "count" : 1, "hasMore" : false, "links" : [ { "rel" : "self", "href" : "http://localhost:7001/HSDataService-web/api/3.2.0/variants/byChromosome/byAllele?alignmentId=1&chromosome=CHR20&startPosition=3&allele=G" } ] }