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

Set tmp file path #2

Closed
mmoisse opened this issue May 9, 2016 · 2 comments
Closed

Set tmp file path #2

mmoisse opened this issue May 9, 2016 · 2 comments

Comments

@mmoisse
Copy link

mmoisse commented May 9, 2016

Is there a way to set the temp filepath?

I'm working on a cluster where I have a quota of 8GiB in my homedir. When I run multiple instances of CollapsABEL they all crash due to I/O error. I noticed that this is due to the fact that CollapsABEL makes temp files in in ${HOME}/.collapsabel/
I solved this by making ${HOME}/.collapsabel a symlink to a place without space quota. But it would be nice it this would a setting somewhere.

@kindlychung
Copy link
Owner

kindlychung commented Jun 23, 2016

Yes, like this:

library(CollapsABEL)
collenv$.collapsabel_dir = "/tmp/collapsabel"
rbed_info = rbedInfo(bedstem = "test", TRUE)
pl_gwas = plGwas(rbed_info,
pheno = "test.phe",
pheno_name = "y",
covar_name = "sex,age",
gwas_tag = "test_y_sex_age")
gcdh_res = runGcdh(pl_gwas, n_shift = 5)

@kindlychung
Copy link
Owner

I forgot something, there are two other variables that can also be changed:

collenv$.collapsabel_dir = "/tmp/colldir"
collenv$.collapsabel_gwas = file.path(collenv$.collapsabel_dir, "gwas")
collenv$.collapsabel_gcdh = file.path(collenv$.collapsabel_dir, "gcdh")

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