From 9489b882ac60d7c796fb7dc0286841a2a4c123d4 Mon Sep 17 00:00:00 2001 From: "katarzyna.otylia.sikora@gmail.com" Date: Thu, 9 Jan 2025 13:14:46 +0100 Subject: [PATCH] expand --- snakePipes/shared/rules/whatshap.snakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snakePipes/shared/rules/whatshap.snakefile b/snakePipes/shared/rules/whatshap.snakefile index e143f02e4..ab1c2fbc7 100644 --- a/snakePipes/shared/rules/whatshap.snakefile +++ b/snakePipes/shared/rules/whatshap.snakefile @@ -38,8 +38,8 @@ def collect_split_bams(wildcards): checkpoint_output_a = checkpoints.whatshap_haplotag.get(**wildcards).output["hbam"] checkpoint_output_b = checkpoints.whatshap_split.get(**wildcards).output checkpoint_output = checkpoint_output_a + checkpoint_output_b - return ("allelic_bams/{sample}.{suffix}.sorted.bam", - suffix=glob_wildcards("allelic_bams/{sample}.{suffix}.sorted.bam").suffix) + return expand("allelic_bams/{{sample}}.{suffix}.sorted.bam", + suffix = glob_wildcards("allelic_bams/{sample}.{suffix}.sorted.bam").suffix) rule BAMindex_allelic: input: