Icon

04_​SimilaritySearch_​solution

04_SimilaritySearch

In this exercise we expand our results by finding building blocks similar to those we selected in the previous exercise (03_Clustering).

The catalog of building blocks is taken from : https://zinc15.docking.org/catalogs/enaminebbe/substances/

We will first calculate the fingerprints from the compounds and the building blocks. To ensure that the settings for this calculation are the same we will create and use a shared component. Then we perform a similarity search and end with a final selection and annotation step.

04_Similarity Search

In this exercise we expand our results by finding similar building blocks for the interesting compounds found in the previous exercise.

I. Fingerprints Using Shared Components
  1. Disregard the already provided File Reader for now and read the clusters you picked in the last exercise by dragging and dropping the file into your workspace. If it is in .table format, no further specification of file types is necessary. Otherwise, set file type of the "smiles" column to SMILES.

  2. Create a shared component to generate fingerprints with the same settings:
    - Use the node Column Selection Configuration to allow selection of the desired SMILES column, make sure that only SMILES columns can be selected by applying the type filter. You will later be able to access the configuration by double-clinking the component.
    - Use the RDKit Fingerprint node to create Morgan Fingerprints from the canonical smiles column, call the column "mfp2".
    - Create a component called "Generate Fingerprints" and share it in the data folder of this exercise in your local workspace (Right Click on the component → Component → Share). Select workflow-relative path in the next window.

  3. Execute the File Reader (Complex Format) with the building blocks and investigate the data. Add a RDKit Functional Group Filter node afterwards. Filter the groups Carboxylic Acid and Aromatic Carboxylic Acid from the smiles column.

  4. Reuse the shared component to generate fingerprints for the filtered data.

II. Similarity Search
  1. Perform a Similarity search for the two sets of generated fingerprints from both shared components. Use Tanimoto distance, select similarity as output, and extract the 5 most similar neighbors. Use a similarity range between 0.35 and 1 and use the prefix "nearest neighbor" for the output, the id of the representative column is zinc_id.

  2. Join the SMILES String from the filtered Zinc data to the result.

  3. Remove the columns mfp2 and nearest neighbor-index.

  4. Create a Canonical SMILES for the resulting building blocks, give it an appropriate name such as bb_canonical_smiles.

  5. Adjust the Reference Row filter to remove building blocks that were already in the input data and connect the output to the RDKit From Molecule node. Create a RDKit molecule column with a new name from the bb_canonical_smiles column and use this column in the Renderer to Image node. Choose RDKit 2D depiction as renderer and svg as image type. Investigate the output.

III. Final Selection and Annotation
  1. Create a component that allows the user to make selections and to add final annotations:
    - add a column called Annotation using the Constant Value Column
    - re-sort the result so that the building block and the Annotation column come first
    - use the Table Editor (JavaScript) to display the result, make sure that one can edit the Annotation column, but nothing else (Editor tab). Make sure to enable selection
    - use the Row Splitter node to split the selected data from the rest
    - collapse everything into a component, name it accordingly

  2. Use the view to make selections and annotations, make sure the desired result is in the output

Generate fingerprints solution
Renderer to Image
RDKit Functional Group Filter
Final selection and annotation
RDKit From Molecule
RDKit Canon SMILES
Generate fingerprints solution
Reference Row Filter
Joiner
Table Reader
Similarity Search
File Reader (Complex Format)
Column Filter

Nodes

Extensions

Links