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
e814f159
Commit
e814f159
authored
Dec 13, 2016
by
Sander Bollen
Browse files
Merge branch 'fix-BIOPET-496' into 'develop'
Fixing BIOPET-496 See merge request !499
parents
7de7e6ee
04e8b466
Changes
1
Hide whitespace changes
Inline
Side-by-side
bammetrics/src/main/scala/nl/lumc/sasc/biopet/pipelines/bammetrics/BammetricsReport.scala
View file @
e814f159
...
...
@@ -118,13 +118,13 @@ object BammetricsReport extends ReportBuilder {
tsvWriter
.
println
(
"\tMapped\tDuplicates\tUnmapped\tSecondary"
)
def
getLine
(
summary
:
Summary
,
sample
:
String
,
lib
:
Option
[
String
]
=
None
)
:
String
=
{
val
mapped
=
new
SummaryValue
(
List
(
"bammetrics"
,
"stats"
,
"b
iopet_
flagstat"
,
"Mapped"
),
val
mapped
=
new
SummaryValue
(
List
(
"bammetrics"
,
"stats"
,
"b
amstats"
,
"
flagstat
s
"
,
"Mapped"
),
summary
,
Some
(
sample
),
lib
).
value
.
getOrElse
(
0
).
toString
.
toLong
val
duplicates
=
new
SummaryValue
(
List
(
"bammetrics"
,
"stats"
,
"b
iopet_
flagstat"
,
"Duplicates"
),
val
duplicates
=
new
SummaryValue
(
List
(
"bammetrics"
,
"stats"
,
"b
amstats"
,
"
flagstat
s
"
,
"Duplicates"
),
summary
,
Some
(
sample
),
lib
).
value
.
getOrElse
(
0
).
toString
.
toLong
val
total
=
new
SummaryValue
(
List
(
"bammetrics"
,
"stats"
,
"b
iopet_
flagstat"
,
"All"
),
val
total
=
new
SummaryValue
(
List
(
"bammetrics"
,
"stats"
,
"b
amstats"
,
"
flagstat
s
"
,
"All"
),
summary
,
Some
(
sample
),
lib
).
value
.
getOrElse
(
0
).
toString
.
toLong
val
secondary
=
new
SummaryValue
(
List
(
"bammetrics"
,
"stats"
,
"b
iopet_
flagstat"
,
"NotPrimaryAlignment"
),
val
secondary
=
new
SummaryValue
(
List
(
"bammetrics"
,
"stats"
,
"b
amstats"
,
"
flagstat
s
"
,
"NotPrimaryAlignment"
),
summary
,
Some
(
sample
),
lib
).
value
.
getOrElse
(
0
).
toString
.
toLong
val
sb
=
new
StringBuffer
()
if
(
lib
.
isDefined
)
sb
.
append
(
sample
+
"-"
+
lib
.
get
+
"\t"
)
else
sb
.
append
(
sample
+
"\t"
)
...
...
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