Skip to content
GitLab
Menu
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
e49f81e3
Commit
e49f81e3
authored
May 17, 2016
by
Peter van 't Hof
Browse files
Added singletons to summary
parent
11c11c41
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/BiopetFlagstat.scala
View file @
e49f81e3
...
@@ -211,7 +211,8 @@ object BiopetFlagstat extends ToolCommand {
...
@@ -211,7 +211,8 @@ object BiopetFlagstat extends ToolCommand {
def
summary
:
String
=
{
def
summary
:
String
=
{
val
map
=
(
for
(
t
<-
0
until
names
.
size
)
yield
{
val
map
=
(
for
(
t
<-
0
until
names
.
size
)
yield
{
names
(
t
)
->
totalCounts
(
t
)
names
(
t
)
->
totalCounts
(
t
)
}).
toMap
}).
toMap
++
Map
(
"Singletons"
->
crossCounts
(
names
.
find
(
_
.
_2
==
"Mapped"
).
map
(
_
.
_1
).
getOrElse
(-
1
))(
names
.
find
(
_
.
_2
==
"MateUnmapped"
).
map
(
_
.
_1
).
getOrElse
(-
1
))
)
ConfigUtils
.
mapToJson
(
map
).
spaces4
ConfigUtils
.
mapToJson
(
map
).
spaces4
}
}
...
...
Write
Preview
Supports
Markdown
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