Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biopet.biopet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Mirrors
biopet.biopet
Commits
38103728
Commit
38103728
authored
Jul 15, 2017
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing some compile issues
parent
962887bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/vcfstats/VcfStats.scala
...n/scala/nl/lumc/sasc/biopet/tools/vcfstats/VcfStats.scala
+0
-2
biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/vcfstats/VcfStatsSpark.scala
...la/nl/lumc/sasc/biopet/tools/vcfstats/VcfStatsSpark.scala
+2
-4
No files found.
biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/vcfstats/VcfStats.scala
View file @
38103728
...
...
@@ -643,8 +643,6 @@ object VcfStats extends ToolCommand {
val
absFile
=
new
File
(
prefix
+
".abs.tsv"
)
val
relFile
=
new
File
(
prefix
+
".rel.tsv"
)
stats
.
getContigStats
()
absFile
.
getParentFile
.
mkdirs
()
val
absWriter
=
new
PrintWriter
(
absFile
)
...
...
biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/vcfstats/VcfStatsSpark.scala
View file @
38103728
...
...
@@ -3,7 +3,7 @@ package nl.lumc.sasc.biopet.tools.vcfstats
import
java.io.
{
File
,
PrintWriter
}
import
htsjdk.variant.vcf.VCFFileReader
import
nl.lumc.sasc.biopet.tools.vcfstats.VcfStats.
{
cmdArgs
,
_
}
import
nl.lumc.sasc.biopet.tools.vcfstats.VcfStats.
_
import
nl.lumc.sasc.biopet.utils.
{
ConfigUtils
,
FastaUtils
,
ToolCommand
,
VcfUtils
}
import
nl.lumc.sasc.biopet.utils.intervals.
{
BedRecord
,
BedRecordList
}
import
org.apache.spark.
{
SparkConf
,
SparkContext
}
...
...
@@ -137,7 +137,7 @@ object VcfStatsSpark extends ToolCommand {
val
regionStats
=
sc
.
parallelize
(
regions
,
regions
.
size
).
groupBy
(
_
.
chr
).
map
{
case
(
contig
,
records
)
=>
contig
->
records
.
map
(
readBin
(
_
,
samples
,
cmdArgs
,
adInfoTags
,
adGenotypeTags
))}
val
chrStats
=
regionStats
.
map
{
case
(
contig
,
stats
)
=>
contig
->
stats
.
reduce
(
_
+=
_
)}
.
cache
()
val
chrStats
=
regionStats
.
map
{
case
(
contig
,
stats
)
=>
contig
->
stats
.
reduce
(
_
+=
_
)}
val
totalStats
=
chrStats
.
values
.
reduce
(
_
+=
_
)
...
...
@@ -163,8 +163,6 @@ object VcfStatsSpark extends ToolCommand {
cmdArgs
.
outputDir
+
"/sample_compare/allele_overlap"
,
samples
)
Thread
.
sleep
(
1000000
)
sc
.
stop
logger
.
info
(
"Done"
)
}
...
...
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