def addExcludedVolumeRestraints(self): restrainedParticles = atomicDominoUtilities.getRestrainedParticles(self.protein, self.model, self.namesToParticles) lsc = IMP.container.ListSingletonContainer(restrainedParticles) evr = IMP.core.ExcludedVolumeRestraint(lsc, 1, 1) self.model.add_restraint(evr)
def initializeParticleStatesTable(self): dominoPst = IMP.domino.ParticleStatesTable() restrainedParticles = atomicDominoUtilities.getRestrainedParticles(self.protein, self.model, self.namesToParticles) for p in restrainedParticles: xyzD = IMP.core.XYZ.decorate_particle(p) xyz = IMP.core.XYZ(p).get_coordinates() xyzStates = IMP.domino.XYZStates([xyz]) dominoPst.set_particle_states(p, xyzStates) self.dominoPst = dominoPst