From a28dd191be49d49178540674757ff3323da71f82 Mon Sep 17 00:00:00 2001 From: Fredrik Boulund Date: Thu, 11 Apr 2024 11:17:50 +0200 Subject: [PATCH] Formatting: Break long lines --- workflow/Snakefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/workflow/Snakefile b/workflow/Snakefile index 95a8c3d..72adf80 100644 --- a/workflow/Snakefile +++ b/workflow/Snakefile @@ -33,13 +33,17 @@ LOGDIR = Path(config["logdir"]) all_outputs = [] if config["samplesheet"]: - samplesheet = SampleSheet(config["samplesheet"], keep_local=config["keep_local"], endpoint_url=config["s3_endpoint_url"]) + samplesheet = SampleSheet( + samplesheet=config["samplesheet"], + keep_local=config["keep_local"], + endpoint_url=config["s3_endpoint_url"], + ) SAMPLES = samplesheet.samples INPUT_read1 = lambda w: samplesheet.sample_info[w.sample]["read1"] INPUT_read2 = lambda w: samplesheet.sample_info[w.sample]["read2"] else: SAMPLES = set(glob_wildcards(INPUTDIR/config["input_fn_pattern"]).sample) - INPUT_read1 = INPUTDIR/config["input_fn_pattern"].format(sample="{sample}", readpair="1"), + INPUT_read1 = INPUTDIR/config["input_fn_pattern"].format(sample="{sample}", readpair="1") INPUT_read2 = INPUTDIR/config["input_fn_pattern"].format(sample="{sample}", readpair="2") onstart: @@ -58,7 +62,8 @@ onstart: if config["samplesheet"]: print(f"Found these samples in '{config['samplesheet']}':\n{SAMPLES}") else: - print(f"Found these samples in '{config['inputdir']}' using input filename pattern '{config['input_fn_pattern']}':\n{SAMPLES}") + print(f"Found these samples in '{config['inputdir']}' using " + "input filename pattern '{config['input_fn_pattern']}':\n{SAMPLES}") #############################