ultimate-api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ultimate-api [2020/07/21 10:26] – flack | ultimate-api [2021/05/25 14:22] – flack | ||
---|---|---|---|
Line 225: | Line 225: | ||
</ | </ | ||
- | In case of similarity searches the **tan** value contains the similarity value. | + | In case of similarity searches the **tan** value the response |
+ | |||
+ | In case of similarity searches you can control the minimum similarity with the **sim_threshold** param. Its default | ||
+ | < | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
Line 304: | Line 316: | ||
" | " | ||
} | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Compounds API ====== | ||
+ | |||
+ | ===== Compound details ===== | ||
+ | |||
+ | For example for the compound identified by the InChIKey **PKGBDLPHSYFAFJ-UHFFFAOYSA-N** you can get the detail response the following way: | ||
+ | |||
+ | == Example API request: == | ||
+ | < | ||
+ | |||
+ | == Request: == | ||
+ | < | ||
+ | GET / | ||
+ | </ | ||
+ | |||
+ | == Response: == | ||
+ | < | ||
+ | HTTP/1.1 200 OK Content-Type: | ||
+ | |||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Compounds export ===== | ||
+ | |||
+ | If you have a set of identifiers you can export the corresponding compounds into SMILES or SDF files. | ||
+ | |||
+ | ==== SDF file ==== | ||
+ | |||
+ | == Example API request: == | ||
+ | < | ||
+ | echo ' | ||
+ | </ | ||
+ | |||
+ | == Request: == | ||
+ | < | ||
+ | POST / | ||
+ | Content-Type: | ||
+ | |||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | == Response: == | ||
+ | < | ||
+ | HTTP/1.1 200 OK | ||
+ | Content-Type: | ||
+ | Content-Disposition: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== SMILES file ==== | ||
+ | |||
+ | == Example API request: == | ||
+ | < | ||
+ | echo ' | ||
+ | </ | ||
+ | |||
+ | == Request: == | ||
+ | < | ||
+ | POST / | ||
+ | Content-Type: | ||
+ | |||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | == Response: == | ||
+ | < | ||
+ | HTTP/1.1 200 OK | ||
+ | Content-Type: | ||
+ | Content-Disposition: | ||
</ | </ | ||
Line 321: | Line 457: | ||
== Example API request: == | == Example API request: == | ||
< | < | ||
- | echo ' | + | echo ' |
</ | </ | ||
ultimate-api.txt · Last modified: 2021/05/25 14:27 by flack