Skip to content
Snippets Groups Projects
Commit 68061dfd authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

fix

parent 0c655aeb
No related branches found
No related tags found
No related merge requests found
......@@ -31,10 +31,12 @@ task BgzipAndIndex {
task Index {
input {
File bamFile
String? outputBamPath
String outputBamPath = basename(bamFile)
String dockerImage = "quay.io/biocontainers/samtools:1.8--h46bd0b3_5"
}
String bamIndexPath = sub(select_first([outputBamPath, basename(bamFile)]), "\.bam$", ".bai")
# Select_first is needed, otherwise womtool validate fails.
String bamIndexPath = sub(select_first([outputBamPath]), "\.bam$", ".bai")
command {
bash -c '
......
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