Skip to main content

Replace elements with emojis in rdkit

Project description

emoji-chem buildPyPI version

Open In Colab

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

image

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


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 hashes)

Uploaded Source

Built Distribution

emojichem-0.3.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page