Skip to content

Repository files navigation

pychemprojections

License Ruff

pychemprojections is a python library for visualizing various 2D projections of molecules.

The following projections are implemented:

  • Fischer Projection
  • Newman Projection
  • WedgeDash Projection

Installing

Install the library using pip:

pip install pychemprojections

Examples

Example notebooks for all the projections implemented are available in examples directory.

Contributing

Please follow the contributing guide to understand how to contribute to the repo.

Authors

  • Vandan Revanur

License

This project is licensed under the BSD License - see the LICENSE.txt file for details

Note

Fischer 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

About

Visualize various molecule projections using Python 🎨

Topics

Resources

Contributing

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages