Skip to content

Unable to find residue ... after preparation error #145

@dargen3

Description

@dargen3

Hello,

quite often moleculekit returns a strange error like "RuntimeError: Unable to find residue MET 1 A 0 after preparation". I would like to ask for an explanation of what this error means, and if there is anything I can do to make moleculekit able to process the structure.

Code for reproduction (the structure was downloaded from PDB):

from moleculekit import molecule as moleculekit_PDB
from moleculekit.tools.preparation import systemPrepare as moleculekit_system_prepare

molecule = moleculekit_PDB.Molecule("2ehu.pdb")
prepared_molecule, details = moleculekit_system_prepare(molecule,
                                                        pH=7,
                                                        hold_nonpeptidic_bonds=False,
                                                        ignore_ns_errors=True,
                                                        _molkit_ff=False,
                                                        return_details=True)
prepared_molecule.write(f"{self.data_dir}/output.pdb")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions