schrodinger.structutils.clash_resolution module

class schrodinger.structutils.clash_resolution.ClashResolutionResult(spears: int, clashes: int, no: int, conformer: schrodinger.structure._structure.Structure)

Bases: object

Result of the clash resolution.

spears: int
clashes: int
no: int
conformer: schrodinger.structure._structure.Structure
__init__(spears: int, clashes: int, no: int, conformer: schrodinger.structure._structure.Structure) None
class schrodinger.structutils.clash_resolution.ReceptorLigandClashResolver(receptor: schrodinger.structure._structure.Structure, exclude_asl: Optional[str] = None, reference: Optional[schrodinger.structure._structure.Structure] = None, smarts: Optional[str] = None, dist: float = 4.0)

Bases: object

A class to provide logic for resolving clashes between a receptor and a constrained ligand.

Constraints on the ligand are based on keeping the atoms in the smarts or maximum common substructure with a reference ligand frozen, with smarts taking precedence.

__init__(receptor: schrodinger.structure._structure.Structure, exclude_asl: Optional[str] = None, reference: Optional[schrodinger.structure._structure.Structure] = None, smarts: Optional[str] = None, dist: float = 4.0)
Parameters
  • receptor – The receptor structure

  • exclude_asl – ASL to exclude atoms from the receptor

  • reference – A reference structure to use for the MCS

  • smarts – SMARTS to use for the frozen atoms

  • dist – The cutoff to use receptor distance cell

resolveClashes(ligand: schrodinger.structure._structure.Structure, exclude_h: bool = False, max_conformers: int = 1000, ofac_threshold: float = 0.4) schrodinger.structure._structure.Structure

Resolve as many clashes as possible considering the ring spears to be more important to be resolved.

Parameters
  • ligand – The ligand to resolve clashes for

  • exclude_h – Whether to exclude hydrogen atoms on the ligand

  • max_conformers – The maximum number of conformers to generate

  • ofac_threshold – The cutoff to use for clash detection