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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for emojichem-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e27f54acc12f832be0f374c275c9da0a2ee91ab253c7cd8fdf3d6ada11840a1a
MD5 770738a595ea5bf6d49731c85e6124d9
BLAKE2b-256 79e5b1410a7f732651d03f26f134821c911dc39c01b9f199593fd3badbea5f83

See more details on using hashes here.

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

Hashes for emojichem-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be7db53b0f7d85c378d2d96c91fdf8123e87de487203a1f51b22029ee91bbec0
MD5 8b597cfb82f6dcfe5fe88943554ef740
BLAKE2b-256 a254114153114c56ca05b5fb60dfb236c6bcb0437fb102bdd4002dd81f1ae66e

See more details on using hashes here.

Supported by

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