From 128af567197a0981249351f434c89b3efa383be3 Mon Sep 17 00:00:00 2001 From: Blaise Li <blaise.li__git@nsup.org> Date: Thu, 8 Jun 2023 21:23:39 +0200 Subject: [PATCH] Still patching wildcards. --- small_RNA-seq/small_RNA-seq.snakefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/small_RNA-seq/small_RNA-seq.snakefile b/small_RNA-seq/small_RNA-seq.snakefile index aad860e..65b6981 100644 --- a/small_RNA-seq/small_RNA-seq.snakefile +++ b/small_RNA-seq/small_RNA-seq.snakefile @@ -4344,6 +4344,9 @@ def source_fold_data(wildcards): # 08/06/2023: Take into account new "_by_{norm}" file name element in RPM files # possibly set wildcard constraints elif fold_type in RPM_FOLD_TYPES: + assert wildcards.fold_type.startswith("mean_log2_RPM_by_") + assert wildcards.fold_type.endswith("_fold") + wildcards.norm = wildcards.fold_type[len("mean_log2_RPM_by_"):-len("_fold")] if hasattr(wildcards, "contrast_type"): # We want all contrasts of this type. #https://stackoverflow.com/a/26791923/1878788 -- GitLab