Icon

Exercise Reaction Enumeration and Prioritization

Annotations and comments
  • Exercise: Reaction Enumeration and Prioritization Follow the instructions in the yellow annotation boxes to complete the exercise. Add and configure nodes and connect them to make a single workflow. Required extensions: Chemistry Add-Ons, RDKit KNIME integration
  • Read building blocks in 1. Find the node "File Reader (Complex Format)" in the Node Repository and drag&drop it into the workflow editor. 2. Double click on the node to open its configuration dialogue and configure it: use the workflow relative path, click "Browse" and navigate to the zinc-substances.smi.gz file in the your-knime-workspace/2022_06_12_ICCS/data folder. 3. Click OK, execute the node (e.g. press F7), and explore the output. 3. Connect the node to the given Column Rename node.
  • Standardize the chemical structures and filter duplicates 1. Cast the column with SMILES to type "SMILES" with the Molecule Type Cast node. Tip: Use the Node Description to help you configure the node. You can access it by clicking on the question mark in the configuration dialog of the node or by opeining the menu View >> Description and selecting the node. 2. Create a column containing RDKit molecule data type with the RDKit From Molecule node. 3. Strip the salts with the RDKit Salt Stripper node. 4. Remove the molecules with missing values (missing chemical structures) with the Row Filter node. 5. Generate Canonical SMILES (RDKit Canon SMILES node) and filter duplicates with the Duplicate Filter node. 6. Connect the output of the Duplicate Filter node to the input of the RDKit Functional Group Filter node. 7. Create a metanode to collapse all the standardization and filtering nodes. Select all the nodes (i.e. NOT the RDKit Functional Group Filter) >> right click on the selection >> Create Metanode
  • Filter building blocks for the reaction 1. Explore the settings of the RDKit Functional Group Filter node that is filtering for aromatic carboxylic acids. Execute the configuration of the node and explore its output. Optional: Play with the settings of the node and see how it affects the output. 2. Use another RDKit Functional Group Filter node to filter for molecules with one primary aliphatic amine from the catalog of building blocks (a parallel branch to the first RDKit Functional Group Filter node). Make sure to configure the filter to contain a single amine group and no acids. 3. Filter the building blocks by molecular weight lower than 200 with two nodes: compute the average molecular weight with the RDKit Descriptor Calculation node and then filter with the Row Filter node. 4. Connect the filtered building blocks to the RDKit Two Component Reaction node. Carboxylic acids go to the top port, Amines to the second port.
  • Specify the reaction Configure the RDKit Two Component Reaction node to randomize the reactants, make the products unique and perform a matrix expansion. Also define a maximum number of the reactants to be used (e.g. 200, 500 or 1000).
  • Identify specific substructures in the products 1. Use the Molecular Sketcher component to draw a specific scaffold. You can find this component in the EXAMPLES server >> 00_Components >> Life Sciences. If you don't have access to the internet this component is also available in the data folder of this exercise. Drag and drop it into the workflow. Configure the node to define the output formats of the molecules (e.g. SDF and SMARTS). Execute the node, open the view, draw a scaffold (e.g. pyridine or imidazole). Click OK. 2. Use the RDKit Molecule Substructure Filter node to determine whether the products contain the draw scaffold or node. Remember to connect this node to the RDKit Generate Coords node and then to configure it. Use the Node Description to help you define the settings. 3. Label the data. 3.1. Connect the first output of the RDKit Molecule Substructure Filter node to the Constant Value Column. Execute the last node and explore the output. How did the data change? 3.2. To the data from the second output port of the RDKit Molecule Substructure Filter node apend a new column "scaffold" and fill it with string values "new". 4. Merge the data (outputs from the Constant Filter nodes) with the Concatenate node.
  • Generate images of the molecules Generate images of the chemical structures of the products with the RDKit Molecule to SVG node
  • Create a component with an interactive view to explore the products 1. Add colors to the table based on the information about the scaffold of the molecule, whether it's a new or an old one. To do so, use the Color Manager node. 2. Generate a plot to depict all computed physchem properties at once with the Parallel Coordinates Plot node. 3. Use the Tile View node to display chemical structures of the compounds. Configure the node to display 5 molecules per row and use the RowID as the title column. 4. Collect the information on how many compounds with the new and old scaffold are present in the data set. Do the aggregation of these values with the GroupBy node where you group by the column "scaffold" and aggregate the counts of "Product Index". Visualize this table with the Table View node. 5. Connect the Tile View node to the Excel Writer node. 6. Create a Component with three interactive visualization elements: Parallel Coordinates Plot, Tile View, and Table View. To do so, select these three nodes, right click on the selection and choose "Create Component". You will get a warning message about the resetting of the nodes. Accept it and provide a name to the component. 7. Execute the component and then Right click on it to open the interactive view. Optional: Configure the layout of the component. Right click on the component >> Component >> Open Select the Node and Layout Editor in the toolbar (the icon to the most right) Arrange the positions of the views in the Tab "Composite view layout"
  • Save selected products Use the given Excel Writer node to save a file with the results. Optionally you can also use an SDF Writer node to save an SD file.
  • carboxylic acid = 1 aromatic

Nodes

Extensions

Links