A simple demo of using RDKit to highlight a custom set of substructures in a query molecule. List of substructures can be provided in a file uploaded by the user. Query molecule is drawn by the user via JSME.
- I haven't tried to optimize the binderhub config yet. It may or may not work. Better run it locally for stability.
- Takes some time to load. Retry may helps if you get an error.
- If the above link is not working, try the following:
- visit https://mybinder.org/v2/gh/molmdl/ipy_JSME_SMARTS-pattern-search.git/main
- Switch to classic via the upper menu bar ‘Help’ > ‘Launch Classic Notebook’.
- launch JSME_custom_SMARTS_highlight.ipynb
- Install Anaconda or Miniconda.
- Clone this repository
git clone https://github.com/molmdl/ipy_JSME_SMARTS-pattern-search.git - cd to the cloned repository
cd ipy_JSME_SMARTS-pattern-search - Create a conda environment with required dependencies
conda env create -f environment.yml - Activate the environment
conda activate ipy_JSME_SMARTS - Launch the notebook
jupyter notebook JSME_custom_SMARTS_highlight.ipynb
Workflow
- Load the JSME editor and draw the molecule of interest
- Upload the csv file containing the SMARTS pattern of your custom chemical filters.
- Highlight the SMARTS pattern in the molecule drawn by the user.
Majority of the code was taken from the following resources:
- JSME_ipywidget
- "T003_compound_unwanted_substructures" of TeachOpenCADD
Reference:
- (a)JSME editor (b) JSME_ipywidget for jupyter notebook
- RDKit official website
- teachopencadd talktorials (a) Publication [1] [2], (b) website, (c) Github
- The Brenk filter. Actually its already implemented in RDKit, using it to test the use of custom filters.