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

rewrite tabix

parent 7f939c34
No related branches found
No related tags found
No related merge requests found
...@@ -182,17 +182,24 @@ task Fastq { ...@@ -182,17 +182,24 @@ task Fastq {
task Tabix { task Tabix {
input { input {
String inputFile File inputFile
String outputFilePath = "indexed.vcf.gz"
String type = "vcf" String type = "vcf"
String dockerTag = "0.2.6--ha92aebf_0" String dockerTag = "0.2.6--ha92aebf_0"
} }
command { command {
tabix ~{inputFile} -p ~{type} set -e
if [ ! -f ~{outputFilePath} ]
then
ln ~{inputFile} ~{outputFilePath}
fi
tabix ~{outputFilePath} -p ~{type}
} }
output { output {
File index = inputFile + ".tbi" File indexedFile = outputFilePath
File index = outputFilePath + ".tbi"
} }
runtime { 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