Skip to content

Loading molecules from RDKit #71

Answered by RMeli
Tonylac77 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Tonylac77, thank you for your interest in spyrmsd.

The spyrmsd.molecules.Molecule class has a special constructor to build a spyrmsd molecule directly from and RDKit molecule:

from spyrmsd.molecule import Molecule
m = Molecule().from_rdkit(YOUR_RDKIT_MOLECULE)

You can then use spyrmsd.rmsd.rmsdwrapper which works directly with spyrmsd molecules.

Alternatively, you can use the attributes of the spyrmsd.molecule.Molecule directly in the call to the more bare-bone spyrmsd.rmsd.symmrmsd, as shown in the tutorial.

Finally, you can bypass the spyrmsd.molecule.Molecule class entirely by extracting the relevant information needed by spyrmsd.rmsd.symmrmsd directly from an RDKit molecule as fol…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RMeli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Please use Discussions instead
2 participants
Converted from issue

This discussion was converted from issue #70 on November 27, 2022 22:52.