20for cl
in ligands.get_children():
25 for pa
in protein_atoms:
26 for la
in ligand_atoms:
30 score += ps.evaluate_index(m,
31 (pa.get_particle_index(),
32 la.get_particle_index()),
None)
33 print(
"score for ", cl.get_name(),
"is", score)
Class for storing model, its restraints, constraints, and particles.
Hierarchies get_by_type(Hierarchy mhd, GetByType t)
Gather all the molecular particles of a certain level in the hierarchy.
A decorator for a particle with x,y,z coordinates.
Functionality for loading, creating, manipulating and scoring atomic structures.
Hierarchy read_mol2(TextInput mol2_file, Model *model, Mol2Selector *mol2sel=nullptr)
Create a hierarchy from a Mol2 file.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
void add_protein_ligand_score_data(Hierarchy h)
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
double get_distance(const Surface &s, const XYZR &d)
Get distance from sphere to surface.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.