10 class WeightRestraint(object):
12 def __init__(self, weight, lower, upper, kappa):
15 self.m = self.weight.get_model()
21 self.rs.add_restraint(
28 def get_restraint(self, label):
31 def add_to_model(self):
34 def set_label(self, label):
40 score = self.rs.unprotected_evaluate(
None)
41 output[
"_TotalScore"] = str(score)
42 output[
"WeightRestraint_" + self.label] = str(score)
46 class JeffreysPrior(object):
48 def __init__(self, nuisance):
50 self.m = nuisance.get_model()
54 self.rs.add_restraint(jp)
56 def add_to_model(self):
59 def set_label(self, label):
64 score = self.rs.unprotected_evaluate(
None)
65 output[
"_TotalScore"] = str(score)
66 output[
"JeffreyPrior_" + self.label] = str(score)
Various classes to hold sets of particles.
Object used to hold a set of restraints.
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 ...