diff --git a/public/shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/VarscanCnsSingleSample.scala b/public/shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/VarscanCnsSingleSample.scala index c74d7e54d3f61687ca9f3d3106cf243cdad4e9c2..f838a22344cb20786364420e9e5dbf32d083e0a2 100644 --- a/public/shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/VarscanCnsSingleSample.scala +++ b/public/shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/VarscanCnsSingleSample.scala @@ -36,6 +36,7 @@ class VarscanCnsSingleSample(val root: Configurable) extends Variantcaller { val sampleVcf = new File(outputDir, s"${name}_$sample.vcf.gz") val sampleFile = new File(outputDir, s"$sample.name.txt") + sampleFile.getParentFile.mkdirs() sampleFile.deleteOnExit() val writer = new PrintWriter(sampleFile) writer.println(sample)