Commit ff3de574 authored by Peter van 't Hof's avatar Peter van 't Hof

Fixing grouping

parent 050ed7a9
......@@ -71,7 +71,7 @@ class GenotypeGvcfs(val parent: Configurable) extends QScript with BiopetQScript
val groupSize = if (files.size > (maxNumberOfFiles * maxNumberOfFiles)) {
files.size / maxNumberOfFiles
} else if (files.size < maxNumberOfFiles) files.size
else files.size / (files.size / maxNumberOfFiles)
else (files.size.toDouble / (files.size.toDouble / maxNumberOfFiles).ceil).ceil.toInt
files.grouped(groupSize).toList
}
......
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