1 """@namespace IMP.pmi.restraints.em2d
2 Restraints for handling electron microscopy images.
12 class ElectronMicroscopy2D():
24 self.m = representation.prot.get_model()
31 resolution=resolution)
37 particles, images, pixel_size, image_resolution, projection_number,
True)
38 self.rs.add_restraint(em2d)
40 def set_label(self, label):
43 def add_to_model(self):
44 self.m.add_restraint(self.rs)
46 def get_restraint(self):
49 def set_weight(self,weight):
51 self.rs.set_weight(self.weight)
56 score = self.weight*self.rs.unprotected_evaluate(
None)
57 output[
"_TotalScore"] = str(score)
58 output[
"ElectronMicroscopy2D_" + self.label] = str(score)
Restraints using electron microscopy 2D images (class averages).
Object used to hold a set of restraints.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
A restraint for fast scoring of Particles vs. em2d class averages.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Functionality for loading, creating, manipulating and scoring atomic structures.