Closed hongxianglics closed 10 months ago
I tried to use the rdkit
to do sanitize as follows
from rdkit import Chem
m = Chem.MolFromSmiles('CCC')
Chem.SanitizeMol(m)
Chem.MolToSmiles(m)
but I just got the same output CCC
Hello
Did you happen to insert a column header in your molecules.txt
file?
If so, that is probably causing the error message you see about the non-sanitizable compound
Got it! That's true! Thanks!
Hi,
I am trying to ues the command line to create stock file
smiles2stock --files molecules.txt --output stock.hdf5
themolecules.txt
only contains a single SMILESCCC
then I got this outputProcessing molecules.txt
Failed to convert to inchi key. Probably due to sanitation.
Created HDF5 stock with 1 unique compounds
I do got thehdf5
file generated, and I am just wondering if the fail to generate inchi key affaect loading this stock molecule? if so, how can I make it right?Many thanks!