[chimerax-users] Change the directory for data fetched from databases

Guillaume Gaullier guillaume.gaullier at icm.uu.se
Fri Dec 17 01:14:32 PST 2021


Very simple indeed, I should have thought of that first. Thank you Tristan. :-)

Guillaume


On 17 Dec 2021, at 10:11, Tristan Croll <tic20 at CAM.AC.UK<mailto:tic20 at CAM.AC.UK>> wrote:

An alternative approach which doesn't involve modifying ChimeraX (but still requires action in each user account) would be to simply symlink ~/Downloads/ChimeraX to the centralised location.

-- Tristan
________________________________
From: ChimeraX-users <chimerax-users-bounces at cgl.ucsf.edu<mailto:chimerax-users-bounces at cgl.ucsf.edu>> on behalf of Guillaume Gaullier via ChimeraX-users <chimerax-users at cgl.ucsf.edu<mailto:chimerax-users at cgl.ucsf.edu>>
Sent: 17 December 2021 08:40
To: goddard <goddard at sonic.net<mailto:goddard at sonic.net>>
Cc: ChimeraX Users Help <chimerax-users at cgl.ucsf.edu<mailto:chimerax-users at cgl.ucsf.edu>>
Subject: Re: [chimerax-users] Change the directory for data fetched from databases

Hi Tom,

This is the use case I had in mind indeed. Model files are small enough that duplication doesn’t matter, but a shared cache for maps could be convenient. I was simply asking in case there was a supported way to achieve this that I had missed in the documentation, but I can absolutely live with the current default.

Thank you for your answer.
Cheers,

Guillaume


On 16 Dec 2021, at 23:50, Tom Goddard <goddard at sonic.net<mailto:goddard at sonic.net>> wrote:

Hi Guillaume,

 There is no setting to change the location where ChimeraX caches fetched files.  It is always

~/Downloads/ChimeraX

On a multi-user workstation is the idea that every person would change the ChimeraX setting to point to a common cache directory?  Will people cooperate with that?  Each person of course has their own ChimeraX settings.  Everyone will also need write access to that directory.  There are no site-wide settings in ChimeraX.

You could modify the ChimeraX application file, a file in the distribution (here's the path for Linux)

chimerax/lib/python3.9/site-packages/chimerax/core/fetch.py

making

_cache_dirs = ['/usr/local/chimerax_fetch']

near the top would I think change to use that directory.  Of course each time you install a new ChimeraX it would need such a change, and if individual users install their own ChimeraX version it will use ~/Downloads/ChimeraX.

Tom


On Dec 16, 2021, at 2:08 AM, Guillaume Gaullier via ChimeraX-users <chimerax-users at cgl.ucsf.edu<mailto:chimerax-users at cgl.ucsf.edu>> wrote:

Hello,

The documentation for the open command says "Web-fetched data are stored locally in ~/Downloads/ChimeraX/ (where ~ indicates a user's home directory)". Is there a way to change this directory? I couldn’t find one in the settings window, but maybe a command could do that? (in that case I would simply need to add this command to the startup commands).

The use case I have in mind is to share the ChimeraX cache between all accounts on a multi-user workstation (so, relocate the cache at some place like /data/ChimeraX).

Thank you,

Guillaume









När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/

E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy

_______________________________________________
ChimeraX-users mailing list
ChimeraX-users at cgl.ucsf.edu<mailto:ChimeraX-users at cgl.ucsf.edu>
Manage subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20211217/e20e526f/attachment.html>


More information about the ChimeraX-users mailing list