Replace elements with emojis in rdkit
Project description
emoji-chem
Install
pip install emojichem
Quickstart
Note: this is currently broken -- it mixes up order of hydrogens and heteroatoms on side groups (e.g., NH2 or OH). Not sure how to fix this because rdkit doesn't output enough information for me rewrite the SVG.
import emojichem
emojichem.emoji_draw('CCN(CC)C(=O)[C@H]1CN([C@@H]2Cc3c[nH]c4c3c(ccc4)C2=C1)C')
Example
This is how it should look
You can also make a grid with emoji_grid
:
Credit
Emoji list was taken (with minor modifications) from Nicola Ga-stan (@nicgaston) in this tweet
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emojichem-0.3.0.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file emojichem-0.3.0.tar.gz
.
File metadata
- Download URL: emojichem-0.3.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27f54acc12f832be0f374c275c9da0a2ee91ab253c7cd8fdf3d6ada11840a1a |
|
MD5 | 770738a595ea5bf6d49731c85e6124d9 |
|
BLAKE2b-256 | 79e5b1410a7f732651d03f26f134821c911dc39c01b9f199593fd3badbea5f83 |
File details
Details for the file emojichem-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: emojichem-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be7db53b0f7d85c378d2d96c91fdf8123e87de487203a1f51b22029ee91bbec0 |
|
MD5 | 8b597cfb82f6dcfe5fe88943554ef740 |
|
BLAKE2b-256 | a254114153114c56ca05b5fb60dfb236c6bcb0437fb102bdd4002dd81f1ae66e |