This example shows writing a brownian dynamics simulation to a rmf file. It includes a bounding box, restraints and a hierarchy of particles.
20 for i
in range(0, np)]
24 p.set_coordinates_are_optimized(
True)
31 for i
in range(0, len(ps) / 2):
32 pp = (ps[2 * i], ps[2 * i + 1])
57 bd.set_log_level(IMP.base.SILENT)
58 bd.set_scoring_function(sf)
60 bd.set_maximum_time_step(10)
63 rmf = RMF.create_rmf_file(name)
64 rmf.set_description(
"Brownian dyanmics trajectory with 10fs timestep.\n")
70 os.update_always(
"initial conformation")
71 os.set_log_level(IMP.base.SILENT)
73 bd.add_optimizer_state(os)
77 print "file is", rmf.get_name()