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
623035b0
Commit
623035b0
authored
May 18, 2015
by
Peter van 't Hof
Browse files
fixed group function
parent
fba9e593
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/picard/Picard.scala
View file @
623035b0
...
...
@@ -84,8 +84,8 @@ object Picard {
case
(
_
,
Some
(
group
))
=>
{
val
groupId
=
header
.
indexOf
(
group
)
if
(
groupId
==
-
1
)
throw
new
IllegalArgumentException
(
group
+
" not existing in header of: "
+
file
)
Some
((
for
(
c
<-
content
)
yield
c
ontent
(
groupId
).
toString
()
->
{
header
.
zip
(
c
).
toMap
Some
((
for
(
c
<-
content
)
yield
c
(
groupId
).
toString
()
->
{
header
.
filter
(
_
!=
group
).
zip
(
c
).
toMap
}).
toMap
)
}
case
(
1
,
_
)
=>
Some
(
header
.
zip
(
content
.
head
).
toMap
)
...
...
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