<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div>Thank you all for the help. I appreciate it.</div>
<div>Shubham</div>
<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Tom Goddard <goddard@sonic.net><br>
<b>Sent:</b> May 17, 2022 12:25 AM<br>
<b>To:</b> ChimeraX Users Help <chimerax-users@cgl.ucsf.edu>; Eric Pettersen <pett@cgl.ucsf.edu><br>
<b>Cc:</b> Shubham Devesh Ramgoolam <sdramgoolam@uwaterloo.ca><br>
<b>Subject:</b> Re: [chimerax-users] Removing text labels generated with command distance</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">I made a ChimeraX fix so labels will not cause problems in no gui mode. I put this in the daily builds (and eventually in ChimeraX 1.5), but not in the ChimeraX 1.4 release candidate
since we are too close to releasing 1.4 to include it.
<div class=""><br class="">
</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>Tom</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On May 16, 2022, at 3:49 PM, Eric Pettersen via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Your script will work in tomorrow's daily build.
<div class=""><br class="">
</div>
<div class="">--Eric<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On May 14, 2022, at 11:57 PM, Shubham Devesh Ramgoolam via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="x_WordSection1" style="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; text-decoration:none">
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Hi,</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
I hope you are doing well.</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
I have a python script, to be executed in nogui mode, which does the following:</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
-open a pdb file</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif; text-indent:0.5in">
-define centroids for specific residues</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif; text-indent:0.5in">
-draw pseudobonds between specific residues -> I am using the command distance for this purpose</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
The issue arises when I have to save the session (.cxs) when in nogui mode, I am getting this error:</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif; text-indent:0.5in">
QGuiApplication::font(): no QGuiApplication instance and no application font set.</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
I believe it is because of the text labels created by the command distance. So, I included the following in my code: run(session, ‘hide #2.*’) and I can now save the session.</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
I noticed in the model panel that the pdb file is assigned to #1 and the pseudobond to #2. The text labels are created as a submodel of the pseudobond (so #2.1, 2.2,..), hence why the ‘hide #2.*’</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Will this fix always work? Is the model assignment also dependent on the pdb file being opened?</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Regards,</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Shubham</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Sent from<span class="x_Apple-converted-space"> </span><a href="https://go.microsoft.com/fwlink/?LinkId=550986" class="" style="color:blue; text-decoration:underline">Mail</a><span class="x_Apple-converted-space"> </span>for Windows</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
</div>
</div>
<span class="" style="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; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="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; text-decoration:none">
<span class="" style="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; text-decoration:none; float:none; display:inline!important">ChimeraX-users
mailing list</span><br class="" style="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; text-decoration:none">
<a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="" style="color:blue; text-decoration:underline; 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">ChimeraX-users@cgl.ucsf.edu</a><br class="" style="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; text-decoration:none">
<span class="" style="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; text-decoration:none; float:none; display:inline!important">Manage
subscription:</span><br class="" style="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; text-decoration:none">
<a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" class="" style="color:blue; text-decoration:underline; 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">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<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="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>