Skip to content

Commit

Permalink
refactor: allow future user override of sing cachedir location
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Aug 26, 2024
1 parent eaf946d commit 59ad63c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ccbr_tools/pipeline/hpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self):
self.env_vars = "\n".join(
(
self.env_vars,
f"export PATH=${{PATH}}:/mnt/projects/CCBR-Pipelines/bin",
"export PATH=${PATH}:/mnt/projects/CCBR-Pipelines/bin",
)
)

Expand Down
7 changes: 6 additions & 1 deletion src/ccbr_tools/pipeline/nextflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ def run(
"submit_slurm.sh",
PIPELINE=pipeline_name if pipeline_name else "CCBR_nxf",
MODULES=hpc.modules,
ENV_VARS=hpc.env_vars,
ENV_VARS="\n".join(
(
hpc.env_vars,
f"export SINGULARITY_CACHEDIR={get_singularity_cachedir()}",
)
), # TODO allow user override of singularity cache dir with CLI
RUN_COMMAND=nextflow_command,
)
run_command = f"sbatch {slurm_filename}"
Expand Down

0 comments on commit 59ad63c

Please sign in to comment.