[Chimera-users] Obtaining the path to a currently loaded model or volume
Eric Pettersen
pett at cgl.ucsf.edu
Thu Apr 11 13:49:51 PDT 2019
Hi Ricardo,
Every opened model in Chimera has an ‘openedAs’ attribute which is either None or a 4-tuple. For models that were directly opened from a single file on the file system (rather than fetched to a file for instance), openedAs will be a tuple whose first component is the full path to that file. If you need more that that (e.g. fetched files too, which is more complicated), let me know and I can provide those details.
—Eric
Eric Pettersen
UCSF Computer Graphics Lab
> On Apr 10, 2019, at 12:49 PM, Ricardo Avila <ravila at protonmail.com> wrote:
>
> Hi,
>
> I am trying to write an extension for a tool that requires PDB files or MRC structures as input. I would like to be able to pass the model or volume that is currently loaded in Chimera to this separate executable, but for this I need to get the file path to the model's object. Is this possible to do from the Python API?
>
> Thanks in advance,
>
> Ricardo Avila
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20190411/49a1e4c8/attachment.html>
More information about the Chimera-users
mailing list