<div dir="ltr">Great! That works, thanks a lot!<br><div><br></div><div>Best,</div><div>Yasser</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie., 3 jul. 2020 a las 18:04, Elaine Meng (<<a href="mailto:meng@cgl.ucsf.edu">meng@cgl.ucsf.edu</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Yasser,<br>
If you can figure out commands to do it for a single frame, then you could put the commands into a per-frame script in MD Movie to execute at each frame. It will probably not be that fast, however, if you're saving a file each time.<br>
<br>
For example, could use "measure center" to measure center of mass of some set of atoms and add a marker at that point.<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/measure.html#center" rel="noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/measure.html#center</a>><br>
<br>
....then display only the stuff that you want to save, using a distance zone from that marker model.<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/atom_spec.html#zones" rel="noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/atom_spec.html#zones</a>><br>
<br>
Then in MD Movie add as per-frame script <br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/movie/framemovie.html" rel="noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/movie/framemovie.html</a>><br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/movie/movie.html#per-frame" rel="noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/movie/movie.html#per-frame</a>><br>
<br>
For example, a per-frame script something like:<br>
<br>
~display<br>
measure center @* mark true modelId #5<br>
display #0:hoh & #5 z<6.5<br>
close #5<br>
write relative #0 displayed #0 ~/Desktop/zone<FRAME>.pdb<br>
<br>
If your waters are named WAT you would use that instead of HOH, of course, and you may want a different distance zone, different filename and location, etc. Also I wasn't sure if you wanted to save all the atoms in the zone or only the waters. The above shows only waters but you could modify to show whichever atoms you want to save.<br>
<br>
I hope this helps,<br>
Elaine<br>
-----<br>
Elaine C. Meng, Ph.D. <br>
UCSF Chimera(X) team<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
> On Jul 3, 2020, at 3:31 AM, Yasser Almeida <<a href="mailto:yasser.almeida@gmail.com" target="_blank">yasser.almeida@gmail.com</a>> wrote:<br>
> <br>
> Hello,<br>
> <br>
> I have a trajectory of a water box and I want to select, show only, save the waters that move in a zone around the COM of the whole system. Any thoughts?<br>
> <br>
> Thanks in advance,<br>
> <br>
> Yasser<br>
<br>
</blockquote></div>