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
610b8971
Commit
610b8971
authored
Aug 18, 2014
by
Peter van 't Hof
Browse files
Changed Int to Long
parent
661c7456
Changes
1
Hide whitespace changes
Inline
Side-by-side
flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/scripts/Seqstat.scala
View file @
610b8971
...
...
@@ -48,11 +48,11 @@ object Seqstat {
}
def
mergeSummarys
(
jsons
:
List
[
Json
])
:
Json
=
{
def
addJson
(
json
:
Json
,
total
:
Map
[
String
,
Int
])
{
def
addJson
(
json
:
Json
,
total
:
Map
[
String
,
Long
])
{
for
(
key
<-
json
.
objectFieldsOrEmpty
)
{
if
(
json
.
field
(
key
).
get
.
isObject
)
addJson
(
json
.
field
(
key
).
get
,
total
)
else
if
(
json
.
field
(
key
).
get
.
isNumber
)
{
val
number
=
json
.
field
(
key
).
get
.
numberOrZero
.
to
Int
val
number
=
json
.
field
(
key
).
get
.
numberOrZero
.
to
Long
if
(
total
.
contains
(
key
))
{
if
(
key
==
"len_min"
)
{
if
(
total
(
key
)
>
number
)
total
(
key
)
=
number
...
...
@@ -65,8 +65,8 @@ object Seqstat {
}
}
var
basesTotal
:
Map
[
String
,
Int
]
=
Map
()
var
readsTotal
:
Map
[
String
,
Int
]
=
Map
()
var
basesTotal
:
Map
[
String
,
Long
]
=
Map
()
var
readsTotal
:
Map
[
String
,
Long
]
=
Map
()
var
encoding
:
Set
[
Json
]
=
Set
()
for
(
json
<-
jsons
)
{
encoding
+=
json
.
fieldOrEmptyString
(
"qual_encoding"
)
...
...
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