Skip to content
Snippets Groups Projects
Commit 783783a9 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixed names

parent 446a1f7a
No related branches found
No related tags found
1 merge request!61Switch to structs
...@@ -25,22 +25,22 @@ task BgzipAndIndex { ...@@ -25,22 +25,22 @@ task BgzipAndIndex {
task Index { task Index {
input { input {
String? preCommand String? preCommand
File bamFilePath File bamFile
String? bamIndexPath String? bamIndexPath
} }
command { command {
set -e -o pipefail set -e -o pipefail
~{preCommand} ~{preCommand}
samtools index ~{bamFilePath} ~{bamIndexPath} samtools index ~{bamFile} ~{bamIndexPath}
} }
output { output {
IndexedBamFile outputBam = object { IndexedBamFile outputBam = object {
file: bamFilePath, file: bamFile,
index: if defined(bamIndexPath) index: if defined(bamIndexPath)
then select_first([bamIndexPath]) then select_first([bamIndexPath])
else bamFilePath + ".bai" else bamFile + ".bai"
} }
} }
} }
......
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