From 38cbc8b060ed6378a7e49e727e56a5e601b44ce1 Mon Sep 17 00:00:00 2001 From: Simon Mutch Date: Thu, 1 Sep 2022 17:15:40 +1000 Subject: [PATCH] Add more conda info to onstart directive --- mccoy/workflow/Snakefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mccoy/workflow/Snakefile b/mccoy/workflow/Snakefile index 223fc76..72c5176 100644 --- a/mccoy/workflow/Snakefile +++ b/mccoy/workflow/Snakefile @@ -37,14 +37,17 @@ onstart: for path in INPUT_DATA: print(f"- {path}") print("Workflow paths:") - print(f"\tsnakefile ➡ {workflow.snakefile}") - print(f"\tworking directory ➡ {workflow.basedir}") + print(f"\t{'snakefile':20s} ➡ {workflow.snakefile}") + print(f"\t{'working directory':20s} ➡ {workflow.basedir}") print("Environment:") shell = lambda cmd: subprocess.run(cmd, shell=True, stdout=subprocess.PIPE).stdout.decode().rstrip() print(f"\t{shell('python --version'):20s} ➡ {shell('which python')}") - print(f"\t{shell('conda --version'):20s} ➡ {shell('which conda')}") print(f"\t{' '.join(('snakemake', shell('snakemake --version'))):20s} ➡ {shell('which snakemake')}") + print("Conda:") + print(f"\t{'frontend':20s} ➡ {workflow.conda_frontend}") + print(f"\t{'prefix':20s} ➡ {workflow.conda_prefix}") + print(f"\t{'base path':20s} ➡ {workflow.conda_base_path}") rule all: