Skip to content

'NoneType' object has no attribute 'coordinates' #96

Answered by RMeli
JonasLi-19 asked this question in Q&A
Discussion options

You must be logged in to vote

BTW, if you have spyrmsd molecules already, you can use the rmsdwrapper function instead of passing the information directly to symmrmsd. I should document this better for sure.

from spyrmsd import io, rmsd, molecule

...
            ref_pose = os.path.join(crystal_dir, pdb_id, f'{pdb_id}_ligand.sdf')
            ref = io.loadmol(ref_pose)
            mol = io.loadmol(new_filepath)

            reds = rmsdwrapper(ref, mol) # By default, strips hydrogens and use symmetry-correction

spyrmsd/spyrmsd/rmsd.py

Lines 300 to 308 in 8d3c540

def rmsdwrapper(
molref: molecule.Molecule,
mols: Union[molecule.Molecule, List[molecule.Molecule]],
symmetry: bool = True,
center

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@JonasLi-19
Comment options

@JonasLi-19
Comment options

@RMeli
Comment options

@RMeli
Comment options

Answer selected by JonasLi-19
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants