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

Merge branch 'BIOWDL-85' of https://github.com/biowdl/tasks into BIOWDL-85

parents 84a4fff2 4230206a
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