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

Fix chunking bug on vcfstats

parent 1cb942c6
......@@ -164,8 +164,8 @@ object VcfStats extends ToolCommand {
val intervals: List[Interval] = (
for (
seq <- header.getSequenceDictionary.getSequences;
chunks = seq.getSequenceLength / 10000000;
i <- 1 until chunks
chunks = (seq.getSequenceLength / 10000000) + (if (seq.getSequenceLength % 10000000 == 0) 0 else 1);
i <- 1 to chunks
) yield {
val size = seq.getSequenceLength / chunks
val begin = size * (i - 1) + 1
......
Supports Markdown
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