From a2ec8359e798ecc9713dfd1bb3f836168dd6fb09 Mon Sep 17 00:00:00 2001 From: Austin Gillen <4809242+agillen@users.noreply.github.com> Date: Sun, 13 Oct 2024 15:38:41 -0600 Subject: [PATCH] Update cutadapt_star.snake correct interpretation of basename in _get_fq_paths --- rules/cutadapt_star.snake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/cutadapt_star.snake b/rules/cutadapt_star.snake index 44956f8..6cc1e56 100644 --- a/rules/cutadapt_star.snake +++ b/rules/cutadapt_star.snake @@ -7,7 +7,7 @@ import pandas as pd """ Extract per-sample fastq paths """ def _get_fq_paths(wildcards): - fqs = map(lambda x: os.path.join(DATA, x + "*R1*"), SAMPLES[wildcards.sample]["basename"]) + fqs = map(lambda x: os.path.join(DATA, x + "*R1*"), [SAMPLES[wildcards.sample]["basename"]]) fqs = map(lambda x: glob.glob(x), fqs) fqs = list(chain.from_iterable(fqs))