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

universal indexing

parent ed5ef05d
No related branches found
No related tags found
No related merge requests found
......@@ -31,20 +31,18 @@ task BgzipAndIndex {
task Index {
input {
File bamFile
String bamIndexPath
String dockerImage = "quay.io/biocontainers/samtools:1.8--h46bd0b3_5"
}
String bamPath = basename(bamFile)
command {
set -e
mkdir -p $(dirname ~{bamIndexPath})
samtools index ~{bamFile} ~{bamIndexPath}
ln ~{bamFile} ~{bamPath}
samtools index ~{bamPath}
}
output {
File indexedBam = bamFile
File index = bamIndexPath
File indexedBam = bamPath
File index = sub(bamPath, "\.bam$", ".bai")
}
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