Retrieve Variants for Prediction and Chromosome

get

/ohfapi/cg/v3.3/variants/byPrediction/byChromosome

This endpoint supports the retrieval of Variant Identifiers for Chromosome, Start Position, End Position, Assembly/Alignment Identifier, Prediction Type, multiple Prediction Code, Prediction Score and Prediction Comparator. The response fetches Variants Identifiers which are having defined prediction code or score. Both SIFT and PolyPhen (Polymorphism Phenotyping) type data can be searched using this API.

Request

Supported Media Types
Query Parameters
Security
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : PageableCollection
Type: object
Model for paginated collections of data.
Show Source
Nested Schema : items
Type: array
A collection of paged items.
Show Source
Nested Schema : Serializable
Type: object

400 Response

Chromosome End Position is not supplied

404 Response

Variants not found for the Chromosome and Prediction details supplied
Back to Top

Examples

The following example submits a GET request.

API URL

http://localhost:7010/ohfapi/cg/v3.3/variants/byPrediction/byChromosome?chromosome=CHR&startPosition=10250&endPosition=10251&predictionType=SIFT&predictionScore=1&predictionComparator=<&alignmentId=1&limit=10&offset=0

Example of Response Body

The following example shows the response returned in JSON format.

{
   "resourceType":"Variants",
   "items":[
      {
         "identifier":{
            "system":"ODB",
            "value":"536778"
         },
         "variantPrediction":{
            "reference":"/ohfapi/cg/v3.3/variants/536778/variantPredictions"
         }
      },
      {
         "identifier":{
            "system":"ODB",
            "value":"536777"
         },
         "variantPrediction":{
            "reference":"/ohfapi/cg/v3.3/variants/536777/variantPredictions"
         }
      }
   ],
   "count":2,
   "hasMore":false,
   "links":[
      {
         "rel":"self",
         "href":"http://localhost:7010/ohfapi/cg/v3.3/variants/byPrediction/byChromosome?chromosome=CHR&startPosition=10250&endPosition=10251&predictionType=SIFT&predictionScore=1&predictionComparator=<&alignmentId=1&limit=10&offset=0"
      }
   ]
}
Back to Top