<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Steven,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 12, 2021, at 12:39 PM, Steven Truong via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Dear ChimeraX Admins,<br class=""><br class="">I was hoping to use the “rmsd” command in ChimeraX to measure distances between models within a .py script. <br class=""><br class="">Is there a way to use the output of “rmsd” (or generally any other output in Log) within the script? For example, if rmsd > 2 Angstroms, then do X. <br class=""></div></div></blockquote><div><br class=""></div>Tony answered this.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="">Ultimately, I am attempting to align chains between models. Because my protein is asymmetric, chain A on Model #1 might actually be chain B on Model #2. I was hoping to use “rmsd” to map one chain to the other. Is it a better idea to do this in another program and re-write chain IDs in the .PDB file? If so, what other program would be better at making RMSD calculations between .PDB chains?<br class=""></div></div></blockquote><div><br class=""></div>Do these chains have the same sequence? Also, I'm a little uncertain what "map one chain to the other" means exactly. At any rate, the <a href="https://www.cgl.ucsf.edu/chimerax/docs/user/commands/matchmaker.html" class="">matchmaker</a> command can be used to superimpose one chain onto another and report the backbone (CA or C4'/P) RMSD for the match. By default matchmaker iterates its match, pruning off poorly matching regions and re-matching to get a good fitting "core" match, and will report RMSD values for both the core region and across the entire sequence. You can turn off the iteration if desired with matchmaker's "cutoffDistance none" option.</div><div><br class=""></div><div><div>--Eric</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Eric Pettersen</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>UCSF Computer Graphics Lab</div><div><br class=""></div></div><div><blockquote type="cite" class=""><div class=""><div class=""><br class="">Thank you,<br class="">Steven Truong<br class="">Cambridge University<br class=""><br class="">_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>