Get whole genome view PNG

genomeView

URL

/api/v1/genomeView

Description

Gets the whole genome view PNG image file of the analysis.

Method

GET

Request query parameters

  • id

    String. Optional.

    Id of an analysis. If the name parameter is empty, then id is Mandatory.

  • name

    String. Optional.

    Name of an analysis. If the id parameter is empty, then name is Mandatory.

    • If both id and name are given as input, then the genome-view PNG will be displayed for id, and name won't be considered.

    • Whole Genome View image will be displayed as part of the response, along with analysis and sample name as the header.

    • If no PNG file is available in the /outputs folder, then the response is 200 with the following message: "Genome View PNG not found." [with analysis name and sample name]

  • version

    String. Conditional.

    Application version on which the analysis is launched. For and analysis with older application versions, provide "Version=<IR version>" as a parameter, along with name.

Example request

https://ionreporter.thermofisher.com/api/v1/genomeView?id=ff8081815ba8eac4015ba8ead9ce005d

Request headers

Content-Type:application/x-www-form-urlencoded

Authorization:API Token

Returns

Returns the PNG image file for a whole genome view of the analysis.

Response fields

Status code

Response message

200

Successful response

400

Bad request

404

Not found

401

User is not authenticated

500

Error occurred

Curl command



curl -v -k -X GET "https://<server name>/api/v1/genomeView?name=GVRTestSample2&Version=IR54"-H "Content-Type:application/x-www-form-urlencoded" -H "Authorization:YmZkM2YxYjEzMDBmZTI4MDgwMmM5YjIzMGY1MjEyZDMyMGI3ZTU5MmQyZGY4ZmIxZWI5M2ViYzIxZWNhOWU3NQ"