1 """@namespace IMP.pmi.restraints.em2d
2 Restraints for handling electron microscopy images.
5 from __future__
import print_function
13 class ElectronMicroscopy2D():
25 self.m = representation.prot.get_model()
32 resolution=resolution)
38 particles, images, pixel_size, image_resolution, projection_number,
True)
39 self.rs.add_restraint(em2d)
41 def set_label(self, label):
44 def add_to_model(self):
47 def get_restraint(self):
50 def set_weight(self,weight):
52 self.rs.set_weight(self.weight)
57 score = self.weight*self.rs.unprotected_evaluate(
None)
58 output[
"_TotalScore"] = str(score)
59 output[
"ElectronMicroscopy2D_" + self.label] = str(score)
Restraints using electron microscopy 2D images (class averages).
Object used to hold a set of restraints.
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.