The two previous vortex scripts used the PBD id to download information about a biomolecular structure structure from the Worldwide Protein Data Bank.

The second script creates a column in the Vortex workspace containing the identifiers for ligands pulled from the ligand information (This api call provides a a list of modelled instances of ligands, i.e. ‘bound’ molecules that are not waters.).

Vortex can display chemical structures as well as alphanumeric information so this additional script retrieves the corresponding ligand structures as SMILES strings which are then rendered by Vortex

ChemID2SMILES vortex script

The first part of the script is the usual boilerplate, the dialog box asks the user to identify the column containing the ligand ID. Since there may be multiple ligands, and multiple instances of a specific ligand we convert to a set and then back to list to get a list of unique ID.

This list is then used to create the api_url to use the web service to access the molecular information about each ligand. The returned json is then parsed to extract all the SMILES strings and the individual SMILES copied into separate columns. The result is shown below. The json also includes number of molecular properties that could also be exported.

The script can be downloaded here.https://macinchem.org/wp-content/uploads/2025/04/ChemID2SMILES.vpy_.zip

Related Posts