Advanced use via APIs

TOMATOMET provides a set of APIs (Application Programming Interfaces) by which other programs can use the repository data directly. By accessing the URLs written in specified formats, users can get the results in JSON format (text). The APIs facilitate users integration the search functions in other programs and performing a large amount of searches.

Terminology

Alignment

We compiled the peak detection results from 25 tomato varieties into an "alignment" *****

Displaying the results on a browser

Displaying details of an alignment

Format /alignment/ID
Variable ID: The alignment ID
Example /alignment/KTP_025411
Description The details of the specified alignment are displayed on the web browser.

Displaying alignment search results

Format /search/MASS/MASS_TOLERANCE
Variable MASS: m/z value
MASS_TOLERANCE: m/z tolerance in ppm
Example /search/1034.5534/5
Description The alignments searched based on the averaged m/z value are displayed on the web browser.

Getting the results in JSON format

Getting a list of alignment

Format /api/list/tomato
Example /api/list/tomato
Description All alignment data are available in JSON format.

Getting details of an alignment

Format /api/alignment/ID
Variable ID: The alignment ID
Example /api/alignment/KTP_025411
Description Detailed information of the specified alignment ID is available in JSON format.

Searching alignments based on the average m/z values

Format /api/search/MASS/MASS_TOLERANCE
Variable MASS: m/z value
MASS_TOLERANCE: m/z tolerance in ppm
Example /api/search/1034.5534/5
Description Alignments are searched based on the averaged m/z value, and the results are obtained in JSON format.