This illustrates a basic main loop for optimization and searching for the best scoring conformation.
18 p = m.add_particle(
"p")
22 d.set_coordinates_are_optimized(
True)
28 m.set_log_level(IMP.WARNING)
31 pis = lsc.get_contents()
34 s.set_scoring_function(sf)
35 s.set_number_of_attempts(10)
37 s.set_log_level(IMP.TERSE)
38 s.set_number_of_monte_carlo_steps(10)
40 configs = s.create_sample()
41 for i
in range(0, configs.get_number_of_configurations()):
42 configs.load_configuration(i)
54 for i
in range(0, clustering.get_number_of_clusters()):
56 configs.load_configuration(clustering.get_cluster_representative(i))