<div dir="ltr">Thank you so much. I see now.<div><br>Best,</div><div>Yongcheng</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 29, 2021 at 1:47 PM Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu">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 style="overflow-wrap: break-word;">Hi Yongcheng,<div><span style="white-space:pre-wrap"> </span>Tom's on vacation for a few days, so I'll take a stab at this one. The first argument to QFileDialog::getOpenFileName, if you provide it, has to be a QWidget or subclass thereof, not your DLStruct instance. But you don't need to provide that argument -- you can call QFileDialog::getOpenFileName with just the arguments you actually want to specify by using keywords, namely:</div><div><br></div><div><span style="white-space:pre-wrap"> </span>fname = QFileDialog::getOpenFileName(caption="Select PDB to Open", filter="PDB File (*.pdb)")</div><div><br></div><div>--Eric<br><div><br><blockquote type="cite"><div>On Apr 29, 2021, at 10:28 AM, Yongcheng MU <<a href="mailto:ymu004@odu.edu" target="_blank">ymu004@odu.edu</a>> wrote:</div><br><div><div dir="ltr">Hello Tom,<div><br></div><div>Hope you are doing well.</div><div><br></div><div>I am creating a GUI, and I have some problems. At the right bottom DL Struct window, I want to click the browse button and select a file, but it holds this error. I wonder if you know what's the problem? (My goal is let users find or input the path of a file, and use this path to submit jobs)</div><div><br></div><div>Best regards,</div><div>Yongcheng</div><div><br></div><span id="gmail-m_-3509912613960359379cid:ii_ko35pkcg4"><Screen Shot 2021-04-29 at 1.24.02 PM.png></span><br><div></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 7:20 PM Yongcheng MU <<a href="mailto:ymu004@odu.edu" target="_blank">ymu004@odu.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">Hello Tom,<div><br></div><div>Thank you for the information. I will check these documents you have provided.</div><div><br>Best regards,</div><div>Yongcheng</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 7:01 PM Tom Goddard <<a href="mailto:goddard@sonic.net" target="_blank">goddard@sonic.net</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 Jing, Yongcheng,<div><br><div> ChimeraX requires all different code from Chimera so I suggest not looking at a Chimera example, that will only confuse you as none of it is right for ChimeraX. There are simple examples of Python scripts for ChimeraX at the ChimeraX recipes site</div><div><br></div><div><a href="https://rbvi.github.io/chimerax-recipes/" target="_blank"><span style="white-space:pre-wrap"> </span>https://rbvi.github.io/chimerax-recipes/</a></div><div><br></div><div>For packaging up a plugin there are examples in the ChimeraX programming manual</div><div><br></div><div><span style="white-space:pre-wrap"> </span><a href="https://www.rbvi.ucsf.edu/chimerax/docs/devel/index.html" target="_blank">https://www.rbvi.ucsf.edu/chimerax/docs/devel/index.html</a></div><div><br></div><div>And it can also the packaging for plugins using a bundle_info.xml is used by each of the tools in ChimeraX and you can look at any of those as examples at the ChimeraX GitHub code repository</div><div><br></div><div><span style="white-space:pre-wrap"> </span><a href="https://github.com/RBVI/ChimeraX/tree/develop/src/bundles" target="_blank">https://github.com/RBVI/ChimeraX/tree/develop/src/bundles</a></div><div><br></div><div>Let me know if you run into trouble.</div><div><br></div><div> Tom</div><div><br></div><div><br></div><div><br></div><div><br><blockquote type="cite"><div>On Apr 23, 2021, at 2:53 PM, He, Jing <<a href="mailto:jhe@cs.odu.edu" target="_blank">jhe@cs.odu.edu</a>> wrote:</div><br><div><div style="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;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Hi Tom,</div><div style="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;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br></div><div style="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;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Yongcheng has been setting up the bundle of a PyTorch-based deep learning method to detect secondary structures from medium-resolution density maps. He is able to install the bundle on Mac and PC and it looks like working. He started to create a GUI. I passed him our previous code for a Chimera plugin. Below he shows a few snapshots for that code. We are wondering if ChimeraX has similar functions to be called. Previously our code uses Chimera's functions to do input, output, and any display of some calculated results. How do we do this in ChimeraX? </div><div style="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;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br></div><div style="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;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Jing</div><div 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 style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br></div><div id="gmail-m_-3509912613960359379gmail-m_-1658530009025658637gmail-m_3106040176959892444appendonsend"></div><hr style="display:inline-block;width:735px"><div id="gmail-m_-3509912613960359379gmail-m_-1658530009025658637gmail-m_3106040176959892444divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b><span> </span>Yongcheng MU <<a href="mailto:ymu004@odu.edu" target="_blank">ymu004@odu.edu</a>><br><b>Sent:</b><span> </span>Friday, April 23, 2021 2:04 PM<br><b>To:</b><span> </span>He, Jing <<a href="mailto:jhe@cs.odu.edu" target="_blank">jhe@cs.odu.edu</a>><br><b>Subject:</b><span> </span>ChimeraX-Deeplearning plugin</font><div> </div></div><div><div dir="ltr">Dear Dr. He,<div><br></div><div>I am trying to create a GUI for the bundle. When I check the previous work, I find some codes were called such as chimera.extension. I wonder if ChimeraX needs this kind of code or package as well, and where I can search and find this useful information.</div><div><br></div><div>Best regards,</div><div>Yongcheng</div><div><div><br></div><div><span id="gmail-m_-3509912613960359379cid:1790108c0f89e5069e1"><Screen Shot 2021-04-23 at 1.55.24 PM.png></span><br></div><div><span id="gmail-m_-3509912613960359379cid:1790108c0f892e931242"><Screen Shot 2021-04-23 at 1.55.40 PM.png></span><br></div><div><span id="gmail-m_-3509912613960359379cid:1790108c0f83e9d54c03"><Screen Shot 2021-04-23 at 1.56.01 PM.png></span></div></div></div></div></div></div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div>
<span id="gmail-m_-3509912613960359379cid:f_ko35s57h5"><tool.py></span>_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br></div></blockquote></div><br></div></div></blockquote></div>