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

fix samtools

parent dde60f45
No related branches found
No related tags found
No related merge requests found
......@@ -31,14 +31,21 @@ task BgzipAndIndex {
task Index {
input {
File bamFile
String bamPath = basename(bamFile)
String dockerImage = "quay.io/biocontainers/samtools:1.8--h46bd0b3_5"
}
String bamPath = basename(bamFile)
String bamIndexPath = sub(bamPath, "\.bam$", ".bai")
command {
ln ~{bamFile} ~{bamPath}
bash -c '
set -e
# Make sure bamPath does not exist.
if [ ! -f ~{bamPath} ]
then
ln ~{bamFile} ~{bamPath}
fi
samtools index ~{bamPath} ~{bamIndexPath}
'
}
output {
......
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