Skip to content

Benzyl-titanium/Chem.mol-PixelArt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chem.mol PixelArt

Powered by RDKit

Image to mol

  • white area does not display mol
  • only one colour supported

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

Releases

No releases published

Packages

 
 
 

Contributors

Languages