Created
November 5, 2009 19:25
-
-
Save rwest/227313 to your computer and use it in GitHub Desktop.
turn list of InChIs into list of SMILES
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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