Closed supern8ent closed 9 years ago
I would expect the first four InChIs above to work as long as you don't provide them as unicode (this is a known limitation in the code at the moment).
The last four are not valid InChIs (they don't start with "InChI="), so I would not expect them to work at all.
Do the first four work if you provide them as standard strings and not unicode?
Gosh, I'm sorry. In all my attempts I never tried both dropping the u (for unicode) and leaving in "InChi=" at the same time. At some point I misinterpreted the exception which includes "rdkit.Chem.rdinchi.InchiToMol(unicode, bool, bool)
" to mean that unicode was expected.
Thank you very much for straightening that out.
inchi doesn't seem to be working, even though I did
brew install --with-inchi rdkit
. I pulled ethanol examples from wikipedia's inchi page, and generating the mol doesn't work. All of these,raise the same ArgumentError:
Other observations: If I don't pass a unicode string (i.e. drop the "u"), it returns NoneType. MolFromSmiles works. I tried adding
True, True
as arguments and that got the same error.