Genotype browser

POST /genotype_browser/preview

Preview info for a dataset’s variants

Example request:

POST /genotype_browser/preview HTTP/1.1
Host: example.com
Content-Type: application/json
Accept: application/json

{
  "datasetId": "iossifov_2014"
}

Example response:

  HTTP/1.1 200 OK
  Vary: Accept
  Content-Type: text/javascript

  {
    "cols": [],
    "legend": {},
    "maxVariantsCount": 1001
  }

:statuscode 200: no error
:statuscode 400: invalid dataset ID given
:reqjson string datasetId: The ID of the dataset
POST /genotype_browser/preview/variants

Search a dataset’s variants and retrieve them in a JSON stream of nested lists

Example request:

POST /genotype_browser/preview/variants HTTP/1.1
Host: example.com
Content-Type: application/json
Accept: text/event-stream

{
  "datasetId": "iossifov_2014",
  "maxVariantsCount": 1000
}

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/event-stream

[]
Status Codes:
Request JSON Object:
  • datasetId (string) – The ID of the dataset

  • maxVariantsCount (int) – The maximum amount of variants to retrieve

POST /genotype_browser/download

Search all of a dataset’s variants and retrieve them in a .csv file

Example request:

POST /genotype_browser/preview/variants HTTP/1.1
Host: example.com
Content-Type: application/json
Accept: text/event-stream

{
  "datasetId": "iossifov_2014",
}

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/event-stream

[]
Status Codes:
Request JSON Object:
  • datasetId (string) – The ID of the dataset