Vortex script for flexible search using Un1chem

UniChem is a web resource provided by the EBI, it is a ‘Unified Chemical Identifier’ system, designed to assist in the rapid cross-referencing of chemical structures, and their identifiers, between multiple databases. Currently the UniChem contains data from 27 different data sources. Currently UniChem provides links to 108,941,995 structures.

Chambers, J., Davies, M., Gaulton, A., Hersey, A., Velankar, S., Petryszak, R., Hastings, J., Bellis, L., McGlinchey, S. and Overington, J.P. UniChem: A Unified Chemical Structure Cross-Referencing and Identifier Tracking System. Journal of Cheminformatics 2013, 5:3 (January 2013). DOI: http://dx.doi.org/10.1186/1758-2946-5-3

The previous script showed how to search using ChEMBLID, however one of the attractions of UniChem is that you can search with any molecule identifier if you know the corresponding datasource. This script allows the user to use any molecule identifiers and then search a specified datasource using a common web service.

The first part of the script populates a dialog box that allows the user to select both the column contains the molecule id and the datasource that is to be searched.

All RESTful queries are constructed using the following base url

Specific query urls are then constructed by adding a method name to this base url, followed by input data.

Input data may consist of three types

If the column contained ChEMBLID the URL would have the form, 

for other datasources we just need the src_id.

One slight complication is that whilst there are 27 datasources the numbering for the datasources goes up to 31. This is because 13, 16, 19 and 30 are missing. So whilst we can get the index position of the datasource.

This does might correspond to the number of the src_id required for the URL, so we need to have a list of datasource numbers

and then use the index position of the datasource to get the src_id

We can then construct the url

The rest of the script is similar to the previous version.

The Vortex Script

The script can be downloaded from here 

Page Updated 15 February 2016

Related Posts

One thought on “Vortex script for flexible search using Un1chem

Comments are closed.