-
If we want to load a Molecule, we may use the Molecule.from_rdkit(mol).
it doesn't work becuase the SDWriter is supposed to apply to rdkit.Chem.rdchem.Mol object, not spyrmsd.molecule.Molecule object. So my question is how could I output a spyrmsd.molecule.Molecule object to sdf file? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Oh I realized that the initial rdkit mol is good to use. I don't have to find a way to convert the spyrmsd.molecule.Molecule object to rdkit mol. |
Beta Was this translation helpful? Give feedback.
-
Having the functionality to produce the superimposed structure would be very useful. |
Beta Was this translation helpful? Give feedback.
Hello. As you already realized, the initial RDKit molecule is good to use.
spyrmsd
does not change the molecules (the only exception being theMolecule.strip()
function, which actually removes the hydrogen atoms from the molecular graph). This is because, for minimized RMSD, we use the QCP method. This method explicitly avoids the computation of the rigid body rotations required to superimpose two molecules.Having functionality in
spyrmsd
to actually superimpose the molecules has been in the back of my mind for a while, but I never had the time for implementing it unfortunately.