From 87fffe6a1beaa86e95c3564061d2720cc73308c7 Mon Sep 17 00:00:00 2001 From: Bilal Shaikh Date: Wed, 5 Jun 2024 11:58:19 -0400 Subject: [PATCH] fix: use derived input for star_index (#81) * fix: use derived input for star_index the file path for the -sjdbGTFfile parameter was hardcoded to 'resources/genome.gtf' which causes execution to fail due to missing files on remote execution environments without a shared filesystem (such as kubernetes) This derives the filepath correctly from the input property to fix this issue * chore: make the formatter happy --------- Co-authored-by: David Laehnemann --- workflow/rules/ref.smk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/rules/ref.smk b/workflow/rules/ref.smk index 9be480ba..685c49b2 100644 --- a/workflow/rules/ref.smk +++ b/workflow/rules/ref.smk @@ -63,7 +63,7 @@ rule star_index: directory("resources/star_genome"), threads: 4 params: - extra="--sjdbGTFfile resources/genome.gtf --sjdbOverhang 100", + extra=lambda wc, input: f"--sjdbGTFfile {input.annotation} --sjdbOverhang 100", log: "logs/star_index_genome.log", cache: True