Commit 42b78af4 authored by Peter van 't Hof's avatar Peter van 't Hof

Added mkdirs

parent afd60c92
......@@ -80,6 +80,7 @@ class Toucan(val root: Configurable) extends QScript with BiopetQScript with Sum
val chunkName = s"${region.chr}-${region.start}-${region.end}"
val chunkDir = new File(outputDir, "chunk" + File.separator + chunkName)
chunkDir.mkdirs()
val bedFile = new File(chunkDir, chunkName + ".bed")
BedRecordList.fromList(List(region)).writeToFile(bedFile)
bedFile.deleteOnExit()
......
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