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

improve indexing

parent a558d5bf
No related branches found
No related tags found
No related merge requests found
......@@ -34,15 +34,16 @@ task Index {
String dockerImage = "quay.io/biocontainers/samtools:1.8--h46bd0b3_5"
}
String bamPath = basename(bamFile)
String bamIndexPath = sub(bamPath, "\.bam$", ".bai")
command {
ln ~{bamFile} ~{bamPath}
samtools index ~{bamPath}
samtools index ~{bamPath} ~{bamIndexPath}
}
output {
File indexedBam = bamPath
File index = sub(bamPath, "\.bam$", ".bai")
File index = bamIndexPath
}
runtime {
......
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