<div dir="auto">We've all been there before :-) I really appreciate the help</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021, 6:21 PM Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Oops! I told you it was a hack. :-)<div><br></div><div>Above the line</div><div><br></div><div><span style="white-space:pre-wrap"> </span><i>m._report_chain_descriptions(session)</i></div><div><i><br></i></div><div><span style="font-style:normal">add:</span></div><div><span style="font-style:normal"><br></span></div><div><span style="font-style:normal;white-space:pre-wrap"> </span><i>m._set_chain_descriptions(session)</i></div><div><i><br></i></div><div><span style="font-style:normal">--Eric</span></div><div><div><br><blockquote type="cite"><div>On Apr 28, 2021, at 2:45 PM, Alexander Julian <<a href="mailto:ajulian@hawk.iit.edu" target="_blank" rel="noreferrer">ajulian@hawk.iit.edu</a>> wrote:</div><br><div><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">I've implemented the code and ran it as you suggested, however the output for the chain description is 'No description available' for each structure.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021 at 3:48 PM Alexander Julian <<a href="mailto:ajulian@hawk.iit.edu" target="_blank" rel="noreferrer">ajulian@hawk.iit.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Thank you so much, Eric!</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I appreciate your help!<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021 at 3:35 PM Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" target="_blank" rel="noreferrer">pett@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>No, as long as you're using --nogui (which it certainly sounds like you should be here) the Log tool will not be started and therefore will have no saved state to restore when the session gets restored. As a hack until that enhancement ticket gets implemented you can force the chain table into the log (after the session is restored) with this code:<div><br></div><div><span style="white-space:pre-wrap"> </span><i>from chimerax.atomic import Structure</i></div><div><i><span style="white-space:pre-wrap"> </span>for m in session.models:</i></div><div><i><span style="white-space:pre-wrap"> </span>if isinstance(m, Structure):</i></div><div><i><span style="white-space:pre-wrap"> </span>m._report_chain_descriptions(session)</i></div><div><span style="font-style:normal"><br></span></div><div>You could put that in a .py file and use 'open' to run it. As an additional hack, you can pretend it's a "preset" and add it to the Presets menu (see Presets→Add A Preset...) so you can easily execute it using that menu.</div><div><br></div><div>--Eric<div><div><br><blockquote type="cite"><div>On Apr 28, 2021, at 12:56 PM, Alexander Julian <<a href="mailto:ajulian@hawk.iit.edu" target="_blank" rel="noreferrer">ajulian@hawk.iit.edu</a>> wrote:</div><br><div><div dir="auto">I am currently running with --nogui because I'm running an automated process. Would running --offscreen resolve this issue? </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021, 2:54 PM Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" target="_blank" rel="noreferrer">pett@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Well, whatever the contents of Log tool was when the session was saved should be restored. If there was no Log tool (for instance, if this script creates sessions in "nogui" mode) then nothing is restored.<div><br></div><div>--Eric<br><div><br><blockquote type="cite"><div>On Apr 28, 2021, at 12:42 PM, Alexander Julian <<a href="mailto:ajulian@hawk.iit.edu" rel="noreferrer noreferrer" target="_blank">ajulian@hawk.iit.edu</a>> wrote:</div><br><div><div dir="auto">I am not sure of the exact release version, but it is has definitely been installed this year.<div dir="auto"><br></div><div dir="auto">I create the sessions using a python script and open it with the command line, does that prevent the session messages from restoring? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021, 1:49 PM Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" rel="noreferrer noreferrer" target="_blank">pett@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Alexander,<div><span style="white-space:pre-wrap"> </span>There is no command to re-show the chain table. I have added you to the recipient list for the enhancement-request ticket we have open for that.</div><div><span style="white-space:pre-wrap"> </span>Nonetheless, the chain table should still be in the log contents after the session is restored. At least for sessions saved in versions of ChimeraX since March of 2020, when that capability was added. Are you using an old version of ChimeraX?</div><div><br></div><div><div>--Eric</div><div><br></div><div><span style="white-space:pre-wrap"> </span>Eric Pettersen</div><div><span style="white-space:pre-wrap"> </span>UCSF Computer Graphics Lab</div><div><br><blockquote type="cite"><div>On Apr 27, 2021, at 3:19 PM, Alexander Julian <<a href="mailto:ajulian@hawk.iit.edu" rel="noreferrer noreferrer noreferrer" target="_blank">ajulian@hawk.iit.edu</a>> wrote:</div><br><div><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Good afternoon,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I was wondering if there was any built-in functionality to show the chain annotations that are shown when the file is first open?</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">When I save a session (.cxs) and reopen it later, this information is missing.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Best,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Alexander<br></div><br>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b><font style="background-color:rgb(255,255,255)" face="tahoma,sans-serif" color="#666666">Alexander T. Julian</font></b></div><div><font face="tahoma, sans-serif" color="#666666">PhD Student, Department of Biology, Microbiology</font></div><div><font style="background-color:rgb(255,255,255)" face="tahoma,sans-serif" color="#666666">Bachelor of Science, Biomedical Engineering, <span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:tahoma,sans-serif;font-size:13.33px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none">Cell and Tissue Specialization</span> 2021</font><br></div><div><font style="background-color:rgb(255,255,255)" face="tahoma,sans-serif" color="#666666">Master of Advanced Study, Chemical Engineering 2021</font></div><div><font style="background-color:rgb(255,255,255)" face="tahoma,sans-serif" color="#666666">Illinois Institute of Technology</font></div><div><font style="background-color:rgb(255,255,255)" face="tahoma,sans-serif" color="#666666">Chicago, IL 60616</font></div><div><font style="background-color:rgb(255,255,255)" face="tahoma,sans-serif" color="#666666"><i>Phone (727)-735-7104</i></font><br></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" rel="noreferrer noreferrer noreferrer" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br></div></blockquote></div><br></div></div></blockquote></div>
_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" rel="noreferrer noreferrer" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer noreferrer" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br></div></blockquote></div><br></div></div></blockquote></div>
_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank" rel="noreferrer">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" target="_blank" rel="noreferrer">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br></div></blockquote></div><br></div></div></div></blockquote></div>
</blockquote></div>
_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank" rel="noreferrer">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" target="_blank" rel="noreferrer">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br></div></blockquote></div><br></div></div></blockquote></div>