Skip to content

molmdl/ipy_JSME_SMARTS-pattern-search

Repository files navigation

ipy_JSME_SMARTS-pattern-search

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.

License Hits

Launch in BinderHub

Binder

  • 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:

Install locally

  1. Install Anaconda or Miniconda.
  2. Clone this repository git clone https://github.com/molmdl/ipy_JSME_SMARTS-pattern-search.git
  3. cd to the cloned repository cd ipy_JSME_SMARTS-pattern-search
  4. Create a conda environment with required dependencies conda env create -f environment.yml
  5. Activate the environment conda activate ipy_JSME_SMARTS
  6. Launch the notebook jupyter notebook JSME_custom_SMARTS_highlight.ipynb

Workflow

  1. Load the JSME editor and draw the molecule of interest
  2. Upload the csv file containing the SMARTS pattern of your custom chemical filters.
  3. Highlight the SMARTS pattern in the molecule drawn by the user.

Majority of the code was taken from the following resources:

  1. JSME_ipywidget
  2. "T003_compound_unwanted_substructures" of TeachOpenCADD

Reference:

  1. (a)JSME editor (b) JSME_ipywidget for jupyter notebook
  2. RDKit official website
  3. teachopencadd talktorials (a) Publication [1] [2], (b) website, (c) Github
  4. The Brenk filter. Actually its already implemented in RDKit, using it to test the use of custom filters.

About

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.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors