From ada7124c039fdb28a14faa1e7315c1060728fa75 Mon Sep 17 00:00:00 2001 From: Blaise Li <blaise.li__git@nsup.org> Date: Fri, 12 Jul 2024 22:29:16 +0200 Subject: [PATCH] Quoting issue. --- singularity/run_pipeline.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/singularity/run_pipeline.sh b/singularity/run_pipeline.sh index ddb47de..32bff4d 100755 --- a/singularity/run_pipeline.sh +++ b/singularity/run_pipeline.sh @@ -110,7 +110,8 @@ fi [[ ${QOS} ]] || QOS="normal" [[ ${PART} ]] || PART="common" -cluster_opts="--cluster \\\'sbatch --mem={cluster.ram} --cpus-per-task={threads} --job-name={rule}-{wildcards} --qos=${QOS} --part=${PART} ${wrapper} ${container}\\\' --cluster-config ${cluster_config}" +batch_cmd="sbatch --mem={cluster.ram} --cpus-per-task={threads} --job-name={rule}-{wildcards} --qos=${QOS} --part=${PART} ${wrapper} ${container}" +cluster_opts="--cluster \'${sbatch_cmd}\' --cluster-config ${cluster_config}" #cluster_opts="--cores 20 --cluster \'sbatch --mem={cluster.ram} --cpus-per-task={threads} --job-name={rule}-{wildcards} --qos=${QOS} --part=${PART} --mpi=none\' -j 300" #cmd="APPTAINERENV_USER=${USER} apptainer run --cleanenv -B /opt/hpc/slurm -B /var/run/munge -B /pasteur ${container} ${PROGNAME} ${pipeline_config} ${cluster_opts} --cluster-config ${cluster_config}" #cmd="APPTAINERENV_USER=${USER} apptainer run --cleanenv -B /opt/hpc/slurm -B /var/run/munge -B /pasteur ${container} ${PROGNAME} $@" -- GitLab