Skip to content
GitLab
Menu
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
93e43cc6
Commit
93e43cc6
authored
Apr 11, 2016
by
Peter van 't Hof
Browse files
Remove empty lines
parent
30f85889
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/VariantEffectPredictor.scala
View file @
93e43cc6
...
...
@@ -276,7 +276,7 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
}
def
parseStatsFile
(
file
:
File
)
:
Map
[
String
,
Any
]
=
{
val
contents
=
Source
.
fromFile
(
file
).
getLines
().
toList
val
contents
=
Source
.
fromFile
(
file
).
getLines
().
filter
(
_
!=
""
).
toList
val
headers
=
contents
.
filter
(
x
=>
x
.
startsWith
(
"["
)
&&
x
.
endsWith
(
"]"
))
.
map
(
_
.
stripPrefix
(
"["
).
stripSuffix
(
"]"
))
...
...
@@ -296,7 +296,8 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
val
value
=
stripped
.
split
(
'\t'
).
last
theMap
++=
Map
(
key
->
tryToParseNumber
(
value
,
fallBack
=
true
).
getOrElse
(
value
))
}
}
if
(
stripped
==
""
)
inBlock
=
false
}
if
(
stripped
==
""
)
inBlock
=
false
}
theMap
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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