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

Fix array out of bound error

parent 4dd30a28
......@@ -194,6 +194,9 @@ object Seqstat extends ToolCommand {
val readQual = record.getBaseQualityString
val readNucleotides = record.getReadString
if (record.length >= readStats.lengths.size) // Extends array when length not yet possible
(0 to (record.length - readStats.lengths.size)).foreach(_ => readStats.lengths.append(0))
readStats.lengths(record.length) += 1
for (t <- 0 until record.length()) {
......
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