merenlab / anvio

An analysis and visualization platform for 'omics data
http://merenlab.org/software/anvio
GNU General Public License v3.0
423 stars 144 forks source link

[FEATURE REQUEST] add parameter --temp for temporary files path #2296

Open Louis-MG opened 1 month ago

Louis-MG commented 1 month ago

The need

Diamond can generate a lot of temporary files. The default /tmp can get full on clusters.

The solution

Add a parameter --temp to the command anvi-pan-genome, maybe others too.

Beneficiaries

Anyone working with anvio.

meren commented 1 month ago

Hi @Louis-MG, anvi'o already has a way to help the user to explicitly define a path for temporary files. Can you please try this and let us know if this solves your problem?

# set the TMPDIR environmental variable
export TMPDIR="/path/of/your/choosing/

# run your command in the same terminal session
anvi-pan-genome [...]
Louis-MG commented 1 month ago

It did work, thank you ! But I feel like a flag would be more straightforward. Feels a bit overkill too.

meren commented 1 month ago

We certainly can do that :)

I will mark this as a small project in case someone wishes to add this feature into the codebase.

Louis-MG commented 1 month ago

I'll try to contribute when i find the time !

meren commented 1 month ago

Some quick notes for anyone who wishes to work on this :)