Skip to content

Instantly share code, notes, and snippets.

View codelif's full-sized avatar
🦍

Harsh Sharma codelif

🦍
View GitHub Profile
@jhjensen2
jhjensen2 / smiles2png.py
Created November 5, 2016 10:43
Converts a SMILES string to a 2D picture
import sys
sys.path.append("/usr/local/lib/python2.7/site-packages/")
from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit.Chem import Draw
from rdkit.sping import PIL
filename = sys.argv[1]
file = open(filename, "r+")