Skip to content

Commit 87fffe6

Browse files
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 <[email protected]>
1 parent b3998c1 commit 87fffe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow/rules/ref.smk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ rule star_index:
6363
directory("resources/star_genome"),
6464
threads: 4
6565
params:
66-
extra="--sjdbGTFfile resources/genome.gtf --sjdbOverhang 100",
66+
extra=lambda wc, input: f"--sjdbGTFfile {input.annotation} --sjdbOverhang 100",
6767
log:
6868
"logs/star_index_genome.log",
6969
cache: True

0 commit comments

Comments
 (0)