Giter Club home page Giter Club logo

rdeditor's Introduction

rdeditor

Simple RDKit molecule editor GUI using PySide6 rdeditor, the RDKit molecule editor

Installation

  • requirements

RDKit, NumPy and PySide6 should be automatically pip installed by the setup.py script.

  • installation
pip install .

A launch script will also be added so that it can be started from the command line via the rdEditor command.

Alternative install

Install PySide and RDKit yourself, save the content of rdeditor folder to somewhere you like and start it with python rdEditor.py

Usage

Can be started with rdEditor or rdEditor your_molecule.mol to start edit an existing molecule. Interactions with the molecule are done via clicking on the canvas, atoms or bonds. A choice of tools is available.

Top Menu:

top menu of rdeditor, the RDKit molecule editor

From left to right

  • Open: Open a molfile

  • Save: Save current molecule

  • Save As: Save current molecule with a new name

  • Arrow: Select tool. Click on an atom to select it, click on the canvas to deselect. Clicking on multiple atoms one after another will select them, but only the lastly clicked one will be highlighted in red and used for operations, such as bond creation to another existing atom.

  • Pen: Add tool. Clicking on an existing atom will add the current selected atom type to that atom with a single bond. Clicking on the canvas will add a disconnected atom. Clicking on a bond will cycle through single, double and triple bonds.

  • Add bond / Join atoms: Will add a single bond between a clicked atom (or a previously selected atom) and the next atom clicked.

  • Change Atom: Will substitute the atom clicked, with the currently selected atom type

  • R/S: Change the stereo chemistry of the selected atom (see issues below)

  • E/Z: Change E/Z stereo of double bonds (see issues below)

  • Increase/Decrease charge: Will increase or decrease the charge of the atom clicked

  • Delete atom/bond:

  • Clear Canvas

  • Undo.

Side Bar:

top menu of rdeditor, the RDKit molecule editor

Most commonly used bond types, and atom types can be selected. A Periodic table is accessible for exotic atom types.

Dropdown menus

Access to all standard operations as well as less used atom types and bond-types.

Additional Reading

I wrote a blog post with an overview of the structure of the code. https://www.wildcardconsulting.dk/rdeditor-an-open-source-molecular-editor-based-using-python-pyside2-and-rdkit/

We also published a preprint on ChemRxiv: https://chemrxiv.org/engage/chemrxiv/article-details/65e6dcfa9138d23161b2979c

ISSUES

  • Not possible to distinguish undefined and trans when editing cis/trans double bonds
  • Aromaticity perception hides double-single bonds (kekulization can do likewise)

rdeditor's People

Contributors

ebjerrum avatar janoschmenke avatar adafede avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.