nipreps / mriqc

Automated Quality Control and visual reports for Quality Assessment of structural (T1w, T2w) and functional MRI of the brain
http://mriqc.readthedocs.io
Apache License 2.0
299 stars 132 forks source link

allow setting .cache location via environment variable #1029

Closed bloyl closed 7 months ago

bloyl commented 2 years ago

On some HPCs mriqc fails because /home/bidsapp is located on a readonly filesystem (see https://neurostars.org/t/mriqc-v0-15-2-read-only-error-on-hpc-cluster-oserror-errno-30-read-only-file-system-home-bidsapp-cache-mriqc/7005).

While the solution mentioned in the above works it requires the user to have control over the singularity call, which isn't always possible, for instance in flywheel or XNAT gears/modules.

It would be convenient if mriqc used an environment variable similar to (https://numba.readthedocs.io/en/stable/reference/envvars.html?highlight=ENVIRONMENT#envvar-NUMBA_CACHE_DIR) to allow user control over where this written.

Best,

oesteban commented 1 year ago

This is a great idea! Would you like to contribute it?