Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirrors
biopet.biopet
Commits
f4ab0677
Commit
f4ab0677
authored
Jan 14, 2017
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BIOPET-379
parent
2cf328c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/MultiSampleQScript.scala
...n/scala/nl/lumc/sasc/biopet/core/MultiSampleQScript.scala
+8
-2
No files found.
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/MultiSampleQScript.scala
View file @
f4ab0677
...
...
@@ -141,9 +141,15 @@ trait MultiSampleQScript extends SummaryQScript { qscript: QScript =>
/** returns a set with library names or throws error when not found */
protected
def
libIds
:
Set
[
String
]
=
{
val
ids
=
ConfigUtils
.
getMapFromPath
(
globalConfig
.
map
,
List
(
"samples"
,
sampleId
,
"libraries"
)).
getOrElse
(
Map
()).
keySet
val
ids
:
Set
[
String
]
=
try
{
ConfigUtils
.
getMapFromPath
(
globalConfig
.
map
,
List
(
"samples"
,
sampleId
,
"libraries"
)).
getOrElse
(
Map
()).
keySet
}
catch
{
case
e
:
IllegalStateException
if
e.getMessage
=
=
"Value is not a map: library"
=>
Logging
.
addError
(
"libraries is not a map"
)
Set
(
"placeholder"
)
}
if
(
ids
.
isEmpty
)
{
throw
new
IllegalStateException
(
s
"No libraries found in config for sample $sampleId"
)
Logging
.
addError
(
s
"No libraries found in config for sample $sampleId"
)
}
ids
}
...
...
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