Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional "gsea_home" directory #52

Open
bounlu opened this issue Mar 3, 2022 · 2 comments
Open

Optional "gsea_home" directory #52

bounlu opened this issue Mar 3, 2022 · 2 comments

Comments

@bounlu
Copy link

bounlu commented Mar 3, 2022

By default, gsea-cli sets "gsea_home" to user's HOME directory to write some cache files. Is there an option to set this to another directory when running the gsea-cli?

@bounlu bounlu changed the title optional "gsea_home" directory Optional "gsea_home" directory Mar 3, 2022
@davideby
Copy link
Contributor

davideby commented Mar 3, 2022

@bounlu Sorry, that isn't exposed as a settable preference. It is possible to redirect the report output directories from HOME/gsea_home/output to a different location. It needs to be done in the UI through File > Preferences > General > Report settings rather than through gsea-cli, but it should remain in effect after being set.

That might not be enough to accomplish what you want, though, since GSEA Desktop creates certain other files in gsea_home. Unfortunately it's hard to change that, but let's keep this issue open as a feature request and I'll see what we can do to accommodate it. To be clear, would it be enough to move the cache files elsewhere? It's very handy to have a fixed location for certain things like log files.

Having said all of that, it is possible to do if you are willing to change the user.home property setting for Java. That is, you would be telling the JVM that runs GSEA that the HOME is elsewhere. GSEA always creates this directory in HOME/gsea_home, so this might accomplish what you need.

The problem there is that it might cause problems with things like relative file paths. You ought to be able to work around that with explicit absolute paths, though. If you try it, let us know how it goes.

@davideby
Copy link
Contributor

davideby commented Mar 3, 2022

Here's a (very old) StackOverflow thread that show how one might go about setting user.home:
https://stackoverflow.com/questions/1501235/change-user-home-system-property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants