Show how to score a number of ligand conformations loaded from a file against a protein loaded from a pdb.
13 protein_atoms = IMP.atom.get_by_type(protein, IMP.atom.ATOM_TYPE)
20 for cl
in ligands.get_children():
24 ligand_atoms = IMP.atom.get_by_type(cl, IMP.atom.ATOM_TYPE)
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)