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
d9732c8a
Commit
d9732c8a
authored
Jul 23, 2015
by
Peter van 't Hof
Browse files
Add List to resolveConflict
parent
0d41765c
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/SeqStat.scala
View file @
d9732c8a
...
...
@@ -57,6 +57,8 @@ class SeqStat(val root: Configurable) extends ToolCommandFuntion with Summarizab
override
def
resolveSummaryConflict
(
v1
:
Any
,
v2
:
Any
,
key
:
String
)
:
Any
=
{
(
v1
,
v2
)
match
{
case
(
v1
:
Array
[
_
],
v2
:
Array
[
_
])
=>
v1
.
zip
(
v2
).
map
(
v
=>
resolveSummaryConflict
(
v
.
_1
,
v
.
_2
,
key
))
case
(
v1
:
List
[
_
],
v2
:
List
[
_
])
=>
v1
.
zip
(
v2
).
map
(
v
=>
resolveSummaryConflict
(
v
.
_1
,
v
.
_2
,
key
))
case
(
v1
:
Int
,
v2
:
Int
)
if
key
==
"len_min"
=>
if
(
v1
<
v2
)
v1
else
v2
case
(
v1
:
Int
,
v2
:
Int
)
if
key
==
"len_max"
=>
if
(
v1
>
v2
)
v1
else
v2
case
(
v1
:
Int
,
v2
:
Int
)
=>
v1
+
v2
...
...
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