I have a custom dataset which is a list of graphs that I’d like to convert into SMILES representation. I was checking out RawFeaturizer but I understand how to use it., I also checked some posts in the forum but I mostly see posts w.r.t converting smiles to graph using rdkit or convmolfeaturizer. Please, can some help me with the same. Thank you.
So in general, it’s not straightforward to go back from a graph to a SMILES. One reason is that there are many graph representations of molecules possible with different formats. You’d need to make sure you have the information needed to reconstruct the full molecular formula which isn’t always possible.
My two cents would be that it’s easiest to write something custom for your application that manually reconstructs the formula of your compounds. We don’t currently have a good way to do this in DeepChem