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
b22079f4
Commit
b22079f4
authored
Jan 19, 2017
by
Sander Bollen
Browse files
add extra warning in case of duplicate target names
parent
e6ed0297
Changes
1
Hide whitespace changes
Inline
Side-by-side
bammetrics/src/main/scala/nl/lumc/sasc/biopet/pipelines/bammetrics/BamMetrics.scala
View file @
b22079f4
...
...
@@ -150,6 +150,10 @@ class BamMetrics(val root: Configurable) extends QScript
}
// Create stats and coverage plot for each bed/interval file
val
allIntervalNames
=
(
roiIntervals
++
ampIntervals
).
map
(
_
.
bed
.
getName
)
if
(
allIntervalNames
.
size
!=
allIntervalNames
.
toSet
.
size
)
{
logger
.
warn
(
"There are multiple region files with the same name. Metric values might get overwritten"
)
}
for
(
intervals
<-
roiIntervals
++
ampIntervals
)
{
val
targetName
=
intervals
.
bed
.
getName
.
stripSuffix
(
".bed"
)
val
targetDir
=
new
File
(
outputDir
,
targetName
)
...
...
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