11 class WeightRestraint(object):
13 def __init__(self, weight, lower, upper, kappa):
16 self.m = self.weight.get_model()
22 self.rs.add_restraint(
29 def get_restraint(self, label):
32 def add_to_model(self):
33 self.m.add_restraint(self.rs)
35 def set_label(self, label):
41 score = self.rs.unprotected_evaluate(
None)
42 output[
"_TotalScore"] = str(score)
43 output[
"WeightRestraint_" + self.label] = str(score)
47 class JeffreysPrior(object):
49 def __init__(self, nuisance):
51 self.m = nuisance.get_model()
55 self.rs.add_restraint(jp)
57 def add_to_model(self):
58 self.m.add_restraint(self.rs)
60 def set_label(self, label):
65 score = self.rs.unprotected_evaluate(
None)
66 output[
"_TotalScore"] = str(score)
67 output[
"JeffreyPrior_" + self.label] = str(score)
Various classes to hold sets of particles.
Object used to hold a set of restraints.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
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.
Inferential scoring building on methods developed as part of the Inferential Structure Determination ...