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
29b937d4
Commit
29b937d4
authored
Jul 18, 2017
by
Peter van 't Hof
Browse files
Fix style
parent
c1c70187
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/vcfstats/VcfStatsSpark.scala
View file @
29b937d4
...
...
@@ -151,12 +151,13 @@ object VcfStatsSpark extends ToolCommand {
val
chrStats
=
regionStats
.
combineByKey
(
createCombiner
=
(
x
:
(
Stats
,
BedRecord
))
=>
x
.
_1
,
mergeValue
=
(
x
:
Stats
,
b
:
(
Stats
,
BedRecord
))
=>
x
+=
b
.
_1
,
mergeCombiners
=
(
x
:
Stats
,
y
:
Stats
)
=>
x
+=
y
,
mergeValue
=
(
x
:
Stats
,
b
:
(
Stats
,
BedRecord
))
=>
x
+=
b
.
_1
,
mergeCombiners
=
(
x
:
Stats
,
y
:
Stats
)
=>
x
+=
y
,
partitioner
=
new
HashPartitioner
(
contigs
.
size
),
mapSideCombine
=
true
)
mapSideCombine
=
true
)
val
totalStats
=
chrStats
.
aggregate
(
Stats
.
emptyStats
(
samples
))
(
_
+=
_
.
_2
,
_
+=
_
)
val
totalStats
=
chrStats
.
aggregate
(
Stats
.
emptyStats
(
samples
))(
_
+=
_
.
_2
,
_
+=
_
)
val
allWriter
=
new
PrintWriter
(
new
File
(
cmdArgs
.
outputDir
,
"stats.json"
))
val
json
=
ConfigUtils
.
mapToJson
(
...
...
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