wwood / CoverM

Read coverage calculator for metagenomics
GNU General Public License v3.0
297 stars 30 forks source link

change tmp path #41

Closed ShangjinTan closed 3 years ago

ShangjinTan commented 3 years ago

Some files are written to directory /tmp, where we only have a very small volume. Processes crashes easily when multiple tasks are running simutaneously. It would be the best if the path can be set explicitly via a parameter.

wwood commented 3 years ago

Hi,

This can be controlled by setting environment variables, e.g. TMPDIR. This isn't a parameter that CoverM can take directly, but can nevertheless be changed by users (and this mechanism is common to many programming languages). The specific function being used to find the temporary directory is documented here: https://doc.rust-lang.org/std/env/fn.temp_dir.html

Does that help? Thanks, ben

ShangjinTan commented 3 years ago

Yes, nice, very helpful. Thanks.

wwood commented 3 years ago

Documented properly now, so closing.