ncbi / fcs

Foreign Contamination Screening caller scripts and documentation
Other
88 stars 12 forks source link

Avoid using /tmp #15

Closed tk2 closed 1 year ago

tk2 commented 1 year ago

Hi - thanks for posting the container version of the contamination screening tool. I'm trying out the run_fcsadaptor.sh and it runs just fine on the test data version via singularity. When I try to scale up to a eukaryote genome, I get an error about running out of space in /tmp. Is there any way to provide an alternative temp directory? I can see that a working directory is established in /tmp for the ValidateInputSequences step. The bash script doesn't have an option to provide an alternative working directory.

victzh commented 1 year ago

Thank you for your interest in our products!

Can you try setting TMPDIR environment variable to a directory with more space? As far as I can tell we don't use /tmp explicitly, but mktemp which is called in the validation step should honor TMPDIR.

tk2 commented 1 year ago

Thanks for the clarification, setting TMPDIR seems to have addressed the issue. Now up and running on the larger genome.