Networks-Learning / nevae

Code and data for "NeVAE: A Deep Generative Model for Molecular Graphs", AAAI 2019
54 stars 14 forks source link

Check validity of molecules #2

Closed zoumath closed 6 years ago

zoumath commented 6 years ago

In your paper, you mentioned the validity of the graph is checked using RDKit. What specific function did you use? Is it on the graph, or on the SMILES format converted from the graph? Thanks in advance.

bidishasamantakgp commented 6 years ago

Hi, First we convert the generated molecular graph into a .mol file format. Then we use Chem.MolFromMolFile() with sanitize=True, to convert it to a molecule object. It fails if the generated mol file has invalid molecular structure. Then we convert them to smiles for calculating novelty.