Skip to content
Snippets Groups Projects
Commit 85898c4d authored by ffinfo's avatar ffinfo
Browse files

Dynamic index searching

parent a702288a
No related branches found
No related tags found
1 merge request!61Switch to structs
......@@ -36,11 +36,10 @@ task Index {
}
output {
File index = select_first(flatten([[bamIndexPath], glob(sub(basename(bamFile), "\.bam$", "") + "*.bai")]))
IndexedBamFile outputBam = object {
file: bamFile,
index: if defined(bamIndexPath)
then select_first([bamIndexPath])
else bamFile + ".bai"
index: index
}
}
}
......
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