Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
e8186cf3
Commit
e8186cf3
authored
Mar 09, 2015
by
Peter van 't Hof
Browse files
Fix array out of bound error
parent
4dd30a28
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/Seqstat.scala
View file @
e8186cf3
...
...
@@ -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
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment