Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biopet.biopet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Mirrors
biopet.biopet
Commits
d0b7d22d
Commit
d0b7d22d
authored
May 13, 2016
by
bow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix improper list type check in Toucan
parent
5ca76501
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
toucan/src/main/scala/nl/lumc/sasc/biopet/pipelines/toucan/Toucan.scala
...n/scala/nl/lumc/sasc/biopet/pipelines/toucan/Toucan.scala
+10
-4
No files found.
toucan/src/main/scala/nl/lumc/sasc/biopet/pipelines/toucan/Toucan.scala
View file @
d0b7d22d
...
...
@@ -30,6 +30,7 @@ import nl.lumc.sasc.biopet.utils.VcfUtils
import
nl.lumc.sasc.biopet.utils.config.Configurable
import
nl.lumc.sasc.biopet.utils.intervals.BedRecordList
import
org.broadinstitute.gatk.queue.QScript
import
scalaz._
,
Scalaz
.
_
/**
* Pipeline to annotate a vcf file with VEP
...
...
@@ -263,11 +264,16 @@ class Toucan(val root: Configurable) extends QScript with BiopetQScript with Sum
add
(
annotatedVcf
)
val
activates
=
sampleInfo
map
{
x
=>
val
sampleGroup
=
x
.
_2
.
getOrElse
(
"varda_group"
,
Nil
)
match
{
case
x
:
List
[
String
]
=>
x
case
Nil
=>
Nil
case
_
=>
throw
new
IllegalArgumentException
(
"Sample tag 'varda_group' is not a list of strings"
)
val
maybeSampleGroup
=
x
.
_2
.
get
(
"varda_group"
)
match
{
case
None
=>
Some
(
Nil
)
case
Some
(
vals
)
=>
vals
match
{
case
xs
:
List
[
_
]
=>
xs
.
traverse
[
Option
,
String
]
{
x
=>
Option
(
x
.
toString
).
filter
(
_
==
x
)
}
case
otherwise
=>
None
}
}
val
sampleGroup
=
maybeSampleGroup
.
getOrElse
(
throw
new
IllegalArgumentException
(
"Sample tag 'varda_group' is not a list of strings"
))
importAndActivateSample
(
x
.
_1
,
sampleGroup
,
vcf
,
gVcf
,
annotate
)
}
...
...
Write
Preview
Markdown
is supported
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