Skip to content

Commit

Permalink
Formatting: Break long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
boulund committed Apr 11, 2024
1 parent ef444a8 commit a28dd19
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}")


#############################
Expand Down

0 comments on commit a28dd19

Please sign in to comment.