<div dir="ltr">Hey,<div><br></div><div>Thanks a lot. I will create files like you suggested. </div><div><br></div><div>Regards,</div><div>Tanja</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-18 19:48 GMT+02:00 Eric Pettersen <span dir="ltr"><<a href="mailto:pett@cgl.ucsf.edu" target="_blank">pett@cgl.ucsf.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Ah, I see, these aren’t actually molecules — they’re grids. Therefore Chimera wastes a lot of time looking for bonds that aren’t actually relevant. I assume you have control over how these files are created. What you should do is put the grid points in HETATM records instead of ATOM records, and each in its own residue. This will prevent Chimera from looking for any bonds. The way you have it set up now, Chimera is looking at each atom pair to see if it’s within bonding distance. With the setup I propose, there are no other atoms within the residue to look at for possible bonds, and the use of HETATM records prevents the creation of bonds between consecutive residues.<div><br></div><div>I’ve attached a version of your first file with these changes. You can see it opens quickly. You can’t put a surface on it, but you can change the atoms to “sphere” mode (Actions->Atoms/Bonds->sphere) to get a space-filling depiction.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>—Eric</div><div><br></div><div></div></font></span></div><br><div style="word-wrap:break-word"><div></div><div><br><div><blockquote type="cite"><div>On May 18, 2016, at 7:19 AM, Tanja Štular <<a href="mailto:ts6544@student.uni-lj.si" target="_blank">ts6544@student.uni-lj.si</a>> wrote:</div><br><div><div dir="ltr">Hi all,<div><br></div><div>Here is some information regarding the questions:</div><div><br></div><div>Yes, my plugin is written in Python and it communicates with several external web services. I tried loading the object with initial smart display set to false, but there is no noted difference. </div><div><br></div><div>I'm not sure that the loading can be speeded up since the data is large (I'm attaching two examples). I would just like to send the loading process to the separate thread, then the plugin, so that plugin stays interactive. Is there an option for that?</div><div><br></div><div>Here the command that I use to load and change the structure:</div><div><br></div><div><pre style="font-family:'DejaVu Sans Mono';font-size:9pt;background-color:rgb(39,40,34)"><font color="#f8f8f2">chimera.openModels.open(</font><span style="color:rgb(230,219,116)">data/grid-"</span><span style="color:rgb(249,38,114)">+</span><span style="color:rgb(253,151,31);font-style:italic">name</span><span style="color:rgb(249,38,114)">+</span><span style="color:rgb(230,219,116)">".pdb"</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(253,151,31);font-style:italic">identifyAs</span><span style="color:rgb(249,38,114)">=</span><span style="color:rgb(230,219,116)">"bsite-"</span><span style="color:rgb(249,38,114)">+</span><span style="color:rgb(102,217,239)">str</span><font color="#f8f8f2">(</font><span style="color:rgb(253,151,31);font-style:italic">id</span><font color="#f8f8f2">))</font><span style="color:rgb(204,120,50)"><br></span><pre style="color:rgb(248,248,242);font-family:'DejaVu Sans Mono';font-size:9pt"><span style="font-size:9pt">chimera_id </span><span style="font-size:9pt;color:rgb(249,38,114)">= </span><span style="font-size:9pt">[<a href="http://objekt.id/" target="_blank">objekt.id</a> </span><span style="font-size:9pt;color:rgb(102,217,239);font-style:italic">for </span><span style="font-size:9pt">objekt </span><span style="font-size:9pt;color:rgb(102,217,239);font-style:italic">in </span><span style="font-size:9pt">chimera.openModels.list() </span><span style="font-size:9pt;color:rgb(102,217,239);font-style:italic">if </span><span style="font-size:9pt"><a href="http://objekt.name/" target="_blank">objekt.name</a> </span><span style="font-size:9pt;color:rgb(249,38,114)">== </span><span style="font-size:9pt;color:rgb(230,219,116)">'bsite-'</span><span style="font-size:9pt;color:rgb(249,38,114)">+</span><span style="font-size:9pt;color:rgb(102,217,239)">str</span><span style="font-size:9pt">(</span><span style="font-size:9pt;color:rgb(253,151,31);font-style:italic">id</span><span style="font-size:9pt">)][</span><span style="font-size:9pt;color:rgb(174,129,255)">0</span><span style="font-size:9pt">]</span></pre><pre style="color:rgb(248,248,242);font-family:'DejaVu Sans Mono';font-size:9pt">chimera.runCommand(<span style="color:rgb(230,219,116)">"~show #"</span><span style="color:rgb(249,38,114)">+</span><span style="color:rgb(102,217,239)">str</span>(chimera_id))</pre><pre style="font-family:'DejaVu Sans Mono';font-size:9pt"><font color="#f8f8f2">chimera.runCommand(</font><span style="color:rgb(230,219,116)">"vdw #"</span><span style="color:rgb(249,38,114)">+</span><span style="color:rgb(102,217,239)">str</span><font color="#f8f8f2">(chimera_id))</font></pre><pre style="font-family:'DejaVu Sans Mono';font-size:9pt"><font color="#f8f8f2">chimera.runCommand(</font><span style="color:rgb(230,219,116)">"color "</span><span style="color:rgb(249,38,114)">+</span><font color="#f8f8f2">colors[</font><span style="color:rgb(253,151,31);font-style:italic">id</span><font color="#f8f8f2">]</font><span style="color:rgb(249,38,114)">+</span><span style="color:rgb(230,219,116)">" #"</span><span style="color:rgb(249,38,114)">+</span><span style="color:rgb(102,217,239)">str</span><font color="#f8f8f2">(chimera_id))</font></pre></pre></div><div>Basically what I'm doing is load the object and then change its surface.<br></div><div><br></div><div>I tried running the commands through SubprocessMonitor.Popen with flag daemon = True. Shouldn't this work in the background?</div><div><br></div><div>Thanks,</div><div><br></div><div>Tanja</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-17 19:44 GMT+02:00 Eric Pettersen <span dir="ltr"><<a href="mailto:pett@cgl.ucsf.edu" target="_blank">pett@cgl.ucsf.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Tanja,<div><span style="white-space:pre-wrap"> </span>Well, depending on you data it may still be possible to speed things up somewhat. It’s possible that computing the initial “smart display” is slow with your structure. You can test this out interactively by going to Favorites->Preferences, switch to the New Molecules category of Preferences, and change “smart initial display” from “true” to “false”, then open your structure. If it’s significantly faster to open with smart display off, then let me know what calls you are making to open the structure and I’ll tell you what to change to prevent smart display from happening.</div><div><br></div><div>—Eric</div><div><span><font color="#888888"><br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><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>
</div></font></span><div><div>
<br><div><blockquote type="cite"><div>On May 16, 2016, at 3:06 PM, Tanja Štular <<a href="mailto:ts6544@student.uni-lj.si" target="_blank">ts6544@student.uni-lj.si</a>> wrote:</div><br><div><div dir="ltr">Dear Conrad,<div><br></div><div>Thank you for fast reply. Unfortunately, I'm having the problem due to the large data. As I understand correctly for now there is no way to solve this problem? I would be happy even with just making a plugin responsive while Chimera is loading. </div><div><br></div><div>Regards,</div><div>Tanja</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-16 23:53 GMT+02:00 Conrad Huang <span dir="ltr"><<a href="mailto:conrad@cgl.ucsf.edu" target="_blank">conrad@cgl.ucsf.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Tanja.<br>
<br>
I think the answer depends on where the bottleneck lies. If the problem is that your plugin data is large and Chimera is just slow to process the data set, then there's not a whole lot we can do to speed that up. (That's why we're working on ChimeraX.) If, on the other hand, the issue is that the plugin takes some time to send data back, I may be able to help. Do you have some idea of which type of problem you're encountering? Thanks.<br>
<br>
Conrad<div><div><br>
<br>
On 5/16/2016 9:49 AM, Tanja Štular wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Dear Sir or Madam,<br>
<br>
I have been developing an extension for UCSF Chimera. I'm wondering if<br>
there is any option for background threading for loading object to<br>
Chimera view? Our plugin allows loading large molecules to Chimera which<br>
sometimes causes freezing of Chimera and plugin for a little time. I<br>
know about Subprocess class<br>
(<a href="https://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/Main_RunSubprocess.html" rel="noreferrer" target="_blank">https://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/Main_RunSubprocess.html</a>)<br>
but it doesn't seem to work (same goes for python threading).<br>
<br>
Thank you in advance.<br>
<br>
Best regards,<br>
Tanja<br>
<br>
<br></div></div>
_______________________________________________<br>
Chimera-dev mailing list<br>
<a href="mailto:Chimera-dev@cgl.ucsf.edu" target="_blank">Chimera-dev@cgl.ucsf.edu</a><br>
<a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev" rel="noreferrer" target="_blank">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>
_______________________________________________<br>Chimera-dev mailing list<br><a href="mailto:Chimera-dev@cgl.ucsf.edu" target="_blank">Chimera-dev@cgl.ucsf.edu</a><br><a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev" target="_blank">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
<span><grid-2y03.35.Y01.401.A.A_3.pdb></span><span><grid-1all.43.CYC.175.A.A_0.pdb></span>_______________________________________________<br>Chimera-dev mailing list<br><a href="mailto:Chimera-dev@cgl.ucsf.edu" target="_blank">Chimera-dev@cgl.ucsf.edu</a><br><a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev" target="_blank">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev</a><br></div></blockquote></div><br></div></div><br></blockquote></div><br></div>