Re: [Chimera-users] [chimerax-users] ViewDock script

Hi Eric, I'm using Chimera. Is there an equivalent command to use in Chimera? Thanks, Ibrahim ________________________________ From: Eric Pettersen <pett@cgl.ucsf.edu> Sent: Friday, June 19, 2020 3:50 PM To: Moustafa, Ibrahim M. <ria2@psu.edu> Cc: chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu> Subject: Re: [chimerax-users] ViewDock script Hi Ibrahim, “ui tool hide ViewDockX” will hide all ViewDockX windows. --Eric Eric Pettersen UCSF Computer Graphics Lab On Jun 19, 2020, at 11:54 AM, Moustafa, Ibrahim M. <ria2@psu.edu<mailto:ria2@psu.edu>> wrote: Dear All, I'm trying to run ViewDock from a script using the following command in a loop: runCommand("viewdock " + filename + " AutoDock") It works fine. However, the ViewDock window remains opened after reading each file. For large number of files it is not practical to close them manually. Is there a command to close the opened ViewDock windows to add to the script? Thank you for your help. Ibrahim _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu<mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimerax-users<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplato.cgl.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&data=02%7C01%7Cria2%40psu.edu%7Ca1c7425c985249aac62908d8148a17f4%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637281930630069943&sdata=o57WeP5isjFyrJQaDxwbfnUtnVEHapcRK%2F32oNQZr6w%3D&reserved=0>

Hi Ibrahim, There is no command, but there is Python code that will do it and since you are already using a Python script you can just put this code in it: from chimera.extension import manager as mgr for inst in mgr.instances: if inst.__class__.__name__ == "ViewDock": inst.Quit() --Eric Eric Pettersen UCSF Computer Graphics Lab
On Jun 19, 2020, at 3:43 PM, Moustafa, Ibrahim M. <ria2@psu.edu> wrote:
Hi Eric,
I'm using Chimera. Is there an equivalent command to use in Chimera?
Thanks, Ibrahim From: Eric Pettersen <pett@cgl.ucsf.edu> Sent: Friday, June 19, 2020 3:50 PM To: Moustafa, Ibrahim M. <ria2@psu.edu> Cc: chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu> Subject: Re: [chimerax-users] ViewDock script
Hi Ibrahim, “ui tool hide ViewDockX” will hide all ViewDockX windows.
--Eric
Eric Pettersen UCSF Computer Graphics Lab
On Jun 19, 2020, at 11:54 AM, Moustafa, Ibrahim M. <ria2@psu.edu <mailto:ria2@psu.edu>> wrote:
Dear All,
I'm trying to run ViewDock from a script using the following command in a loop: runCommand("viewdock " + filename + " AutoDock")
It works fine. However, the ViewDock window remains opened after reading each file. For large number of files it is not practical to close them manually.
Is there a command to close the opened ViewDock windows to add to the script?
Thank you for your help.
Ibrahim
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu <mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimerax-users <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplato.cgl.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&data=02%7C01%7Cria2%40psu.edu%7Ca1c7425c985249aac62908d8148a17f4%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637281930630069943&sdata=o57WeP5isjFyrJQaDxwbfnUtnVEHapcRK%2F32oNQZr6w%3D&reserved=0>

Thanks Eric. It works! Ibrahim ________________________________ From: Eric Pettersen <pett@cgl.ucsf.edu> Sent: Friday, June 19, 2020 6:57 PM To: Moustafa, Ibrahim M. <ria2@psu.edu> Cc: chimera-users@cgl.ucsf.edu BB <chimera-users@cgl.ucsf.edu> Subject: Re: [chimerax-users] ViewDock script Hi Ibrahim, There is no command, but there is Python code that will do it and since you are already using a Python script you can just put this code in it: from chimera.extension import manager as mgr for inst in mgr.instances: if inst.__class__.__name__ == "ViewDock": inst.Quit() --Eric Eric Pettersen UCSF Computer Graphics Lab On Jun 19, 2020, at 3:43 PM, Moustafa, Ibrahim M. <ria2@psu.edu<mailto:ria2@psu.edu>> wrote: Hi Eric, I'm using Chimera. Is there an equivalent command to use in Chimera? Thanks, Ibrahim ________________________________ From: Eric Pettersen <pett@cgl.ucsf.edu<mailto:pett@cgl.ucsf.edu>> Sent: Friday, June 19, 2020 3:50 PM To: Moustafa, Ibrahim M. <ria2@psu.edu<mailto:ria2@psu.edu>> Cc: chimerax-users@cgl.ucsf.edu<mailto:chimerax-users@cgl.ucsf.edu> <chimerax-users@cgl.ucsf.edu<mailto:chimerax-users@cgl.ucsf.edu>> Subject: Re: [chimerax-users] ViewDock script Hi Ibrahim, “ui tool hide ViewDockX” will hide all ViewDockX windows. --Eric Eric Pettersen UCSF Computer Graphics Lab On Jun 19, 2020, at 11:54 AM, Moustafa, Ibrahim M. <ria2@psu.edu<mailto:ria2@psu.edu>> wrote: Dear All, I'm trying to run ViewDock from a script using the following command in a loop: runCommand("viewdock " + filename + " AutoDock") It works fine. However, the ViewDock window remains opened after reading each file. For large number of files it is not practical to close them manually. Is there a command to close the opened ViewDock windows to add to the script? Thank you for your help. Ibrahim _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu<mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimerax-users<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplato.cgl.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&data=02%7C01%7Cria2%40psu.edu%7Cd0f7236fa6484e2cb97c08d814a42722%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637282042554799381&sdata=vMONkjxW50ZwaDrZUMP3wcSBl2mgnLLua8iXrji5vQ8%3D&reserved=0>
participants (2)
-
Eric Pettersen
-
Moustafa, Ibrahim M.