-
Notifications
You must be signed in to change notification settings - Fork 736
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
Deepvariant 1.3 write to TMPDIR even if intermediate file dir is set #524
Comments
Hi @edg1983 , sorry that it took a while for me to get to this. |
Hi, As reported above I can see a bunch of small files (30-40 Mb total) written in TMPDIR. If I look in the folder when deepvariant is running I can see files like these I will try another run to monitor when exactly they are created, but the job fails at very early stage when I submit it to the cluster, so I assume these are written during make_examples which is the first step in run deepvariant I think. Thanks for support! |
Ah I see. Sorry I missed that part in your original message. --intermediate_results_dir isn't designed to capture all temp files from DeepVariant. It's for capturing the intermediate outputs (from make_examples, call_variants) in case that users need to re-use them later on. In your case, using your workaround of setting TMPDIR actually makes sense to me. From your description, it also seems like it's related to your system setting. If you think this is going to be a common issue, please share your command and I'm happy to add it to our documentation as a workaround for other users. |
I agree this issue is probably system specific. I'm not sure how common such a configuration is, so maybe it's a problem affecting just me and few others. What I've done is to add a line like this before the actual This overwrites the original variable and set the TMPDIR to a subfolder in the working directory. It works fine in this context since deepvariant is the only operation running in the process and thus changing TMPDIR does not interfere with anything else. |
Thank you @edg1983 I will plan to add this section to our FAQ.md: Singularity related questions:
|
about this tmp_dir location, when running the docker demo command in the current folder do I set TMPDIR to a host physical folder that I create?
or to a docker internal folder mount obtained after create a folder on the host side and mounting it as /tmp_dir with -v as shown below
my current command includes
|
Hi @splaisan To use --intermediate_results_dir, it indicates you probably want to access the content there later. So, I'd recommend that you write it to an output file that you mounted with For example, given that you have Hope this helps. I'm going to close this issue now. |
Thanks @pichuan, it is a typo indeed, I meant /tmp_dir |
Hello,
I'm using DeepVariant docker container v1.3 to call variants using the
run_deepvariant
command.What I've done in the past to manage temp files was to create a
temp_dir
in the working directory and then use--intermediate_results_dir temp_dir
to make DeepVariant write temp files in this custom location.However, the same approach is not working anymore for me in the new HPC system since on computing node the default temp folder stored in
$TMPDIR
is set to a special space\localscratch
that is not among the path automatically mounted by Docker or Singularity (like \tmp) apparently. I realized that, in addition to intermediate files written to--intermediate_results_dir
, DeepVariant writes some additional temp files to the default temp dir location ($TMPDIR
) and this created some issues when running it in pipelines (like Nextflow).I've created a work around by manually setting
$TMPDIR
in the sh script so that it points to another folder in the work directory, and I can see there are a bunch of small files created in there (~30Mb total) like the followingI wonder which kind of files are written to
$TMPDIR
and if it's possible to redirect them by command line option without having to set$TMPDIR
The text was updated successfully, but these errors were encountered: