I am needing to access the text of each record of a SDF, as well as creating a mol instance. I was successfully doing this using SDMolSupplier.GetItemText(). Then I needed to switch to handling gzipped SD files, and SDMolSupplier can only take a file name in its constructor. ForwardSDMolSupplier can handle a gzip file-like instance, but doesn't have the GetItemText() function. Reading the file records as text is easy enough, but I can't figure out how to get the SD file properties (Chem.MolFromMolBlock() does not handle the properties).
Seems like there should be an easy way to handle this that I'm not seeing! Tim
_______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss