pychemprojections is a python library for visualizing various 2D projections of molecules.
The following projections are implemented:
- Fischer Projection
- Newman Projection
- WedgeDash Projection
The Fischer projection drawing only supports SMILES which contain one or more chiral carbon atom(s).
It does not support certain SMILES of compounds where cyclic rings are formed with any of chiral carbon atoms present in the main chain. Therefore, if you would like to draw the Fischer projection of sugars, use the open chain form isomeric SMILES of the compound.
For example, to draw the Fischer projection of Glucose, use the open chain isomeric SMILES which is:
C([C@H]([C@H]([C@@H]([C@H](C=O)O)O)O)O)O
instead of the closed chain SMILES:
C([C@@H]1[C@H]([C@@H]([C@H](C(O1)O)O)O)O)O
Install the library using pip:
pip install git+https://github.com/vandan-revanur/pychemprojections
Example notebooks for all the projections implemented are available in examples directory.
Please follow the contributing guide to understand how to contribute to the repo.
- Vandan Revanur
This project is licensed under the BSD License - see the LICENSE.txt file for details