Commit 818741d1 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix small genomes

parent 836310ca
......@@ -347,7 +347,7 @@ object VcfStats extends ToolCommand {
}
// Triple for loop to not keep all bins in memory
val stats = (for (intervals <- Random.shuffle(intervals).grouped(intervals.size / 4).toList.par) yield {
val stats = (for (intervals <- Random.shuffle(intervals).grouped(intervals.size / (if (intervals.size > 10) 4 else 1)).toList.par) yield {
val chunkStats = for (intervals <- intervals.grouped(25)) yield {
val binStats = for (interval <- intervals.par) yield {
val reader = new VCFFileReader(commandArgs.inputFile, true)
......
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