Receptor Preparation#
- exception mockdock.receptor.PDBDownloadError[source]#
Bases:
ExceptionRaised when a PDB file cannot be downloaded from RCSB.
- exception mockdock.receptor.LigandNotFoundError[source]#
Bases:
ExceptionRaised when the specified ligand resname is not found in the structure.
- exception mockdock.receptor.GridPrepError[source]#
Bases:
ExceptionRaised when mk_prepare_receptor or AutoGrid fails.
- mockdock.receptor.extract_protein_and_ligand(pdb_id, ligand_resname, output_dir='.')[source]#
mmCIF-first receptor/ligand extraction: - Download mmCIF (ProDy fetchPDB if possible, else direct RCSB) - Parse with ProDy - Detect ligand instance + correct chains - Write *_protein.pdb and *_ligand.pdb via ProDy selections
- class mockdock.receptor.ReceptorPreparer(autogrid_executable='autogrid4', mk_prepare_receptor_executable='mk_prepare_receptor.py', reduce2_executable='mmtbx.reduce2')[source]#
Bases:
object- get_receptor_and_ligand_pdb(pdb_id, output_dir, ligand_resname, protein_pdb_path=None, ligand_pdb_path=None)[source]#
Obtain protein and ligand PDB files.
- run_mk_prepare_receptor(receptor_input, ligand_pdb, base_name, output_dir, allow_bad_res=False)[source]#
Run mk_prepare_receptor.py to create PDBQT and GPF.