Anchoring part of a model
![](https://secure.gravatar.com/avatar/d65166bc3e9098e4f467ccd5d262cd9c.jpg?s=120&d=mm&r=g)
I would like to anchor a component of a complex while the others are optimized. With the MonteCarlo sampler is easy, just not adding a mover to the component. But ConjugateGradients moves the position anyway. Is there any way to nicely do this, or do I have to go to each particle of the component and set_is_optimized as False for all the x,y,z keys?
![](https://secure.gravatar.com/avatar/1294d100c1f5fcd24f7ba4dc0349cfac.jpg?s=120&d=mm&r=g)
You can use XYZ::set_coordinates_are_optimized() to reduce the work a bit.
As another helper, you can use the IMP::SaveOptimizeds class to save the current state about what is optimized and then restore it when you are done.
As an alternative, if you want a softer version of keeping things in place, you can use the DistanceToSingletonScore to attach a particle to a location with a spring. --Daniel
On Apr 28, 2011, at 6:46 PM, Javier Velazquez wrote:
> > > I would like to anchor a component of a complex while the others are > optimized. With the MonteCarlo sampler is easy, just not adding a mover > to the component. But ConjugateGradients moves the position anyway. Is > there any way to nicely do this, or do I have to go to each particle of > the component and set_is_optimized as False for all the x,y,z keys? > > > -- > Javier Velazquez > Postdoc at Salilab, UCSF > 1700 4th st. Byers Hall, office 503. > 94158 San Francsico > _______________________________________________ > IMP-dev mailing list > IMP-dev@salilab.org > https://salilab.org/mailman/listinfo/imp-dev
participants (2)
-
Daniel Russel
-
Javier Velazquez