Skip to content
Snippets Groups Projects
Commit 4230206a authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Make bamIndexPath required

parent 7b9b7162
No related branches found
No related tags found
1 merge request!61Switch to structs
...@@ -26,7 +26,7 @@ task Index { ...@@ -26,7 +26,7 @@ task Index {
input { input {
String? preCommand String? preCommand
File bamFile File bamFile
String? bamIndexPath String bamIndexPath
} }
command { command {
...@@ -38,7 +38,7 @@ task Index { ...@@ -38,7 +38,7 @@ task Index {
output { output {
IndexedBamFile outputBam = object { IndexedBamFile outputBam = object {
file: bamFile, file: bamFile,
index: select_first(flatten([[bamIndexPath], glob(sub(basename(bamFile), "\.bam$", "") + "*.bai")])) index: bamIndexPath
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment