Skip to content

Commit

Permalink
fix: use derived input for star_index
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bilalshaikh42 authored Jun 4, 2024
1 parent b3998c1 commit 1416a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/rules/ref.smk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1416a55

Please sign in to comment.