Skip to content
 
 

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chem.mol PixelArt

Powered by RDKit

Image to mol

  • white area does not display mol

Demo

With pymol

GitHub with PyMol Twitter with PyMol
Apple with PyMol Grok with PyMol

Usage

pip

pip install rdkit pillow numpy

conda

conda install -c conda-forge rdkit

Structure

├─main.py  
├─input.png  
└─output.mol

Diy

space=4.0 # Intermolecular distance (Å, recommended 3.0-5.0)

img = img.resize((64, 64), Image.NEAREST) # 64x64

template = Chem.MolFromSmiles('C1CCC1') # cyclobutane

Run

python main.py

About

chemical structure pixel art 化学结构像素画

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages