<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="">I made ChimeraX ignore blank lines and comment lines starting with “#” in pseudobond (.pb) files.<div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 15, 2019, at 3:02 PM, Steve Chou wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Hi Elaine,<br class=""></div>(1) I tried to read the pseudobonds from a file (.pb) ,<span class="Apple-converted-space"> </span><br class="">=========================<br class="">#1/A:13@NE2 #1/A:704@O<br class="">#1/A:13@NE2 #1/A:502@MG<br class="">#1/A:13@NE2 #1/A:501@PB<br class=""><br class="">#2/A:13@NE2 #2/A:704@O<br class="">#2/A:13@NE2 #2/A:502@MG<br class="">#2/A:13@NE2 #2/A:501@PB<br class="">=========================<br class="">the program reported an error.<br class="">=============================<br class=""><div style="margin: 0px; text-indent: 0px; white-space: pre-wrap;" class="">ValueError: not enough values to unpack (expected 2, got 0)<br class="">File "/opt/UCSF/ChimeraX-daily/lib/python3.7/site-packages/chimerax/read_pbonds/readpbonds.py", line 27, in read_pseudobond_file<br class="">aspec1, aspec2 = line.split()[:2]<br class=""><span style="font-style: italic;" class="">See log for complete Python traceback.</span><br class=""></div>=============================<br class=""></div><div class=""><br class="">(2) Then I tried to add distances on the ChimeraX terminal<br class="">=============================<br class="">distance #1/A:13@NE2 #1/A:704@O<br class="">distance #1/A:13@NE2 #1/A:502@MG<br class="">distance #1/A:13@NE2 #1/A:501@PB<br class=""><br class="">distance #2/A:13@NE2 #2/A:704@O<br class="">distance #2/A:13@NE2 #2/A:502@MG<br class="">distance #2/A:13@NE2 #2/A:501@PB<br class="">=============================<br class=""></div><div class="">I was able to see the distance labels in the two structure. And I saw an new model (name: distances; ID:3) show up in the "Models" panels. Then I ran morphing again. The Mg and water molecules moved, but still didn't move together with the protein.<br class=""></div><div class="">Steve<br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div dir="ltr" class="gmail_attr">On Fri, Feb 15, 2019 at 11:31 AM Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">Hi Steve,<br class="">Yes, if those are the correct specifiers for atoms in your structure. You'd make a plain text file with name *.pb with lines like that and open it.<br class=""><br class="">You don’t have to read in pseudobonds from a file, however. If not too many, probably easier just to add distance monitors.<br class=""><<a href="http://rbvi.ucsf.edu/chimerax/docs/user/commands/distance.html" rel="noreferrer" target="_blank" class="">http://rbvi.ucsf.edu/chimerax/docs/user/commands/distance.html</a>><br class=""><<a href="http://rbvi.ucsf.edu/chimerax/docs/user/selection.html#context" rel="noreferrer" target="_blank" class="">http://rbvi.ucsf.edu/chimerax/docs/user/selection.html#context</a>><br class=""><br class="">Elaine<br class=""><br class="">> On Feb 14, 2019, at 9:49 PM, Steve Chou <<a href="mailto:stevezchou@gmail.com" target="_blank" class="">stevezchou@gmail.com</a>> wrote:<br class="">><span class="Apple-converted-space"> </span><br class="">> Hi Elaine,<br class="">> Thanks for your detailed explanation!<span class="Apple-converted-space"> </span><br class="">> What's the format of the pseudobond file? Should it look like this?<br class="">> ===============================<br class="">> #1/A:13@NE2 #1/A:502@MG<br class="">> ===============================<br class="">> All the best,<br class="">> Steve<br class="">><span class="Apple-converted-space"> </span><br class="">> On Thu, Feb 14, 2019 at 7:43 PM Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" target="_blank" class="">meng@cgl.ucsf.edu</a>> wrote:<br class="">> Hi Steve,<br class="">> Actually I’m surprised the Mg and water were included (even if present at both ends) because I thought they had to be tethered by a bond or pseudobond (like a distance measurement) to the biopolymer chain, as described here under “Atoms in Common”:<br class="">><span class="Apple-converted-space"> </span><br class="">> <<a href="http://rbvi.ucsf.edu/chimerax/docs/user/commands/morph.html#pairing" rel="noreferrer" target="_blank" class="">http://rbvi.ucsf.edu/chimerax/docs/user/commands/morph.html#pairing</a>><br class="">><span class="Apple-converted-space"> </span><br class="">> For the case where composition changes, you could add in a fake Mg ion and water to the structure that’s missing them, but you’d have to decide where to put them. Also it was my understanding that they had to be tethered to the biopolymer chain (e.g. add distance measurement, which can then be hidden), but maybe that requirement has changed, or the Mg does already have a metal-coordination pseudobond to the biopolymer.<br class="">><span class="Apple-converted-space"> </span><br class="">> Or if you don’t care if the Mg or water move during the morph, you could just display those atoms from the original model (that was input to morphing) even though they are not present in the trajectory.<br class="">> Elaine<br class="">> -----<br class="">> Elaine C. Meng, Ph.D.<br class="">> UCSF Chimera(X) team<br class="">> Department of Pharmaceutical Chemistry<br class="">> University of California, San Francisco<br class="">><span class="Apple-converted-space"> </span><br class="">> > On Feb 14, 2019, at 12:51 PM, Steve Chou <<a href="mailto:stevezchou@gmail.com" target="_blank" class="">stevezchou@gmail.com</a>> wrote:<br class="">> ><span class="Apple-converted-space"> </span><br class="">> > Thanks, Elaine!<span class="Apple-converted-space"> </span><br class="">> > You command "rainbow structures" works beautifully.<span class="Apple-converted-space"> </span><br class="">> > There is "a Mg ion" and "a water molecule" in the two conformations.<br class="">> > (1) If the two conformations have exactly the same compositions (by shifting the structure), the "Mg ion" and the "water molecule" do not follow the same path as the protein. They move but separate from the protein.<br class="">> > (2) If the two conformations have slightly different compositions, the "Mg ion" and the "water molecule" do not show up in the morphed pdb ensemble.<br class="">> > Is there a way to morph the specific components properly?<br class="">> > Steve<br class="">> ><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class="">> <br class="">><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class="">> _______________________________________________<br class="">> Chimera-users mailing list:<span class="Apple-converted-space"> </span><a href="mailto:Chimera-users@cgl.ucsf.edu" target="_blank" class="">Chimera-users@cgl.ucsf.edu</a><br class="">> Manage subscription:<span class="Apple-converted-space"> </span><a href="http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users" rel="noreferrer" target="_blank" class="">http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""><br class=""></blockquote></div><br clear="all" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">--<span class="Apple-converted-space"> </span></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class="gmail_signature" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">Steve Chou</div><div class=""><br class=""></div><br class=""></div></div></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Chimera-users mailing list:<span class="Apple-converted-space"> </span></span><a href="mailto:Chimera-users@cgl.ucsf.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Chimera-users@cgl.ucsf.edu</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Manage subscription:<span class="Apple-converted-space"> </span></span><a href="http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users</a></div></blockquote></div><br class=""></div></body></html>