From 6e0d4a52e2cc32cdccfc41b8970a427d1e34ceaa Mon Sep 17 00:00:00 2001 From: Chang Ye Date: Thu, 25 Aug 2022 22:21:57 -0500 Subject: [PATCH] support slurm, WIP --- sacseq | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sacseq b/sacseq index d014c13..30774e6 100755 --- a/sacseq +++ b/sacseq @@ -60,4 +60,8 @@ if [ "$#" != 0 ]; then shift # $EOL fi -FLASK_ENV=development snakemake -q --rerun-incomplete -s /opt/pipeline/Snakefile -j ${cores} --configfiles /opt/pipeline/config.yaml ${conf} --profile ${profile} +if [ -n ${profile} ]; then + FLASK_ENV=development snakemake -q --rerun-incomplete -s /opt/pipeline/Snakefile -j ${cores} --configfiles /opt/pipeline/config.yaml ${conf} --profile ${profile} +else + FLASK_ENV=development snakemake -q --rerun-incomplete -s /opt/pipeline/Snakefile -j ${cores} --configfiles /opt/pipeline/config.yaml ${conf} +fi