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
64cd8714
Commit
64cd8714
authored
Apr 16, 2015
by
Peter van 't Hof
Browse files
Fix summary for picard
parent
856f286b
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 @
64cd8714
...
...
@@ -89,9 +89,10 @@ object Picard {
val
start
=
lines
.
indexWhere
(
_
.
startsWith
(
"## "
+
tag
))
+
1
val
end
=
lines
.
indexOf
(
""
,
start
)
val
header
=
lines
(
start
).
split
(
"\t"
)
val
content
=
(
for
(
i
<-
(
start
+
1
)
until
end
)
yield
lines
(
i
).
split
(
"\t"
))
.
map
(
row
=>
row
.
map
(
col
=>
tryToParseNumber
(
col
,
true
).
getOrElse
(
col
)))
val
header
=
lines
(
start
).
split
(
"\t"
).
toList
val
content
=
(
for
(
i
<-
(
start
+
1
)
until
end
)
yield
{
lines
(
i
).
split
(
"\t"
).
map
(
v
=>
tryToParseNumber
(
v
,
true
).
getOrElse
(
v
)).
toList
}).
toList
Some
(
Map
(
"header"
->
header
,
"content"
->
content
))
}
...
...
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