Skip to content

Instantly share code, notes, and snippets.

@rwest
Created November 5, 2009 19:25
Show Gist options
  • Save rwest/227313 to your computer and use it in GitHub Desktop.
Save rwest/227313 to your computer and use it in GitHub Desktop.
turn list of InChIs into list of SMILES
import pybel
output = file('smiles.txt','w')
for inchi in file('inchis.txt'):
molecule = pybel.readstring("inchi",inchi)
output.write( molecule.write('smiles') )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment