Commit 33e49a22 authored by Peter van 't Hof's avatar Peter van 't Hof

fix BIOPET-415

parent 85708a4a
......@@ -33,10 +33,15 @@ class SortVcf(val root: Configurable) extends Picard with Reference {
@Input(doc = "Sequence dictionary to use", required = true)
var sequenceDictionary: File = _
@Output
private var outputIndex: File = _
override val dictRequired = true
override def beforeGraph(): Unit = {
super.beforeGraph()
if (output.getName.endsWith(".vcf.gz")) outputIndex = new File(output.getAbsolutePath + ".tbi")
if (output.getName.endsWith(".vcf")) outputIndex = new File(output.getAbsolutePath + ".idx")
if (sequenceDictionary == null) sequenceDictionary = referenceDictFile
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment