georgiesamaha / configBuilder-nf

Nextflow config builder scripts for supported HPC infrastructures.
7 stars 1 forks source link

Infrastructure config - autodetect: is a cachedir variable already set, for resuse #20

Open jfy133 opened 11 months ago

jfy133 commented 11 months ago

Try to detect from NXF_*_CHACHEDIR env variable to try and suggest an existing cache dir location. Can be used for specifying a default when asking for the cache location.

jfy133 commented 11 months ago

Commands to parse/python code

    cachedirs = [
        os.getenv("NXF_CHARLIECLOUD_CACHEDIR"),
        os.getenv("NXF_CONDA_CACHEDIR"),
        os.getenv("NXF_SINGULARITY_CACHEDIR"),
        os.getenv("NXF_APPTAINER_CACHEDIR"),
    ]