<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It works great. Thank you so much, Eric.<br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">Sincerely,</div><div><br></div><div>Yan Liang</div><div>Graduate Student</div><div>Department of Chemical Engineering and Materials Science</div><div>University of Minnesota</div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> </div><br><div><html>On Apr 2, 2008, at 6:37 PM, Eric Pettersen wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> Hi Yan,<div><span class="Apple-tab-span" style="white-space:pre"> </span>You _could_ write a script to do the averaging, but you would pretty much have to be an expert on how Chimera handles trajectory data to be able to write it in any reasonable amount of time. Since I am such an expert, I've written the script for you and attached it to this message. To do the averaging, simply have your trajectory open and then open the script (either with the File...Open menu or with the "open" command).</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Note that the script rewrites the coordinates of the trajectory. The only way to restore the trajectory to the "unaveraged" state is by reopening the original files. The main parameter in the script you might want to change is the "window" variable, which controls how many adjacent frames contribute to the averaging. The value in the script right now is 2, which means that the two frames to each side of a frame contribute to the average (with further-away frames contributing less).</div><div><br></div><div>--Eric</div><div><br></div><div></div><span><avg.py></span></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div><br><div>On Apr 2, 2008, at 2:36 PM, Yan Liang wrote:<br class="Apple-interchange-newline"><blockquote type="cite"><div>Thank you very much Eric. I have tried "Hold selection steady" function, and it helps a lot to reduce the overall movement of the large molecule. But as for the residuals, they are still very shaky.</div><div><br></div><div>I am thinking about writing a script to average the movement of each atom, but I have no experience in Chimera scripting. Do you think it is possible to write such scripts in Chimera? Thanks.</div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sincerely,</div><div><br></div><div>Yan Liang</div><div>Graduate Student</div><div>Department of Chemical Engineering and Materials Science</div><div>University of Minnesota</div><div><br></div></div></span><br class="Apple-interchange-newline"> </div><br><div>On Apr 2, 2008, at 1:42 PM, Eric Pettersen wrote:<br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> Hi Yan,<div><span class="Apple-tab-span" style="white-space:pre"> </span>Chimera doesn't yet support smoothing per se. What you can do is use "Hold selection steady" in MD Movie's Actions menu to hold one or more atoms (possibly all atoms) as steady as possible across the trajectory -- which will mostly eliminate the translational component of the "shakiness". This "holding steady" is most useful for small-molecule trajectories and replica-exchange trajectories.</div><div><br></div><div>--Eric</div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>Eric Pettersen</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>UCSF Computer Graphics Lab</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> </span><a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></div><br class="Apple-interchange-newline"></span> </div><br><div>On Apr 2, 2008, at 10:44 AM, Yan Liang wrote:<br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I am using Chimera to make a MD movie. The problem is the movie is too <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">shaky. Is it possible to smooth the trajectory by writing a Per-Frame <span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">script in MD Movie tool?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Yan Liang</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Chimera-users mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users">http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users</a></div> </blockquote></div><br></div></div></blockquote></div><br></blockquote></div><br></div></div></blockquote></div><br></body></html>