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
51f0b19d
Commit
51f0b19d
authored
Jan 22, 2017
by
Peter van 't Hof
Browse files
Fixing code warnings
parent
6fc498a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
biopet-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/VariantEffectPredictor.scala
View file @
51f0b19d
...
...
@@ -40,10 +40,10 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
var
vepScript
:
String
=
config
(
"vep_script"
)
@Input
(
doc
=
"input VCF"
,
required
=
true
)
var
input
:
File
=
null
var
input
:
File
=
_
@Output
(
doc
=
"output file"
,
required
=
true
)
var
output
:
File
=
null
var
output
:
File
=
_
override
def
subPath
=
{
if
(
vepVersion
.
isSet
)
super
.
subPath
++
List
(
"vep_settings"
)
++
vepVersion
()
...
...
@@ -160,7 +160,7 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
override
def
defaultCoreMemory
=
4.0
@Output
private
var
_summary
:
File
=
null
private
var
_summary
:
File
=
_
override
def
beforeGraph
()
:
Unit
=
{
super
.
beforeGraph
()
...
...
@@ -312,11 +312,11 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
(
for
((
header
,
headerIndex
)
<-
headers
)
yield
{
val
name
=
header
.
stripPrefix
(
"["
).
stripSuffix
(
"]"
)
name
.
replaceAll
(
" "
,
"_"
)
->
(
contents
.
drop
(
headerIndex
+
1
).
takeWhile
(!
isHeader
(
_
)).
flatMap
{
line
=>
name
.
replaceAll
(
" "
,
"_"
)
->
contents
.
drop
(
headerIndex
+
1
).
takeWhile
(!
isHeader
(
_
)).
flatMap
{
line
=>
val
values
=
line
.
split
(
"\t"
,
2
)
if
(
values
.
last
.
isEmpty
||
values
.
last
==
"-"
)
None
else
Some
(
values
.
head
.
replaceAll
(
" "
,
"_"
)
->
tryToParseNumber
(
values
.
last
).
getOrElse
(
values
.
last
))
}.
toMap
)
}.
toMap
}).
toMap
}
}
biopet-utils/src/test/scala/nl/lumc/sasc/biopet/utils/UtilsTest.scala
View file @
51f0b19d
...
...
@@ -6,6 +6,7 @@ import org.testng.annotations.Test
/**
* Created by Sander Bollen on 12-10-16.
* Here we test utils
*/
class
UtilsTest
extends
TestNGSuite
with
Matchers
{
...
...
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