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
2235fb57
Commit
2235fb57
authored
Mar 02, 2017
by
Peter van 't Hof
Committed by
GitHub
Mar 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28 from biopet/fix-BIOPET-585
Fix biopet 585
parents
495fbe1b
7a80bc33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaSvCalling.scala
.../nl/lumc/sasc/biopet/pipelines/shiva/ShivaSvCalling.scala
+20
-15
No files found.
shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaSvCalling.scala
View file @
2235fb57
...
...
@@ -69,6 +69,7 @@ class ShivaSvCalling(val root: Configurable) extends QScript with SummaryQScript
// merge VCF by sample
for
((
sample
,
bamFile
)
<-
inputBams
)
{
if
(
callers
.
size
>
1
)
{
var
sampleVCFS
:
List
[
Option
[
File
]]
=
List
.
empty
callers
.
foreach
{
caller
=>
sampleVCFS
::=
caller
.
outputVCF
(
sample
)
...
...
@@ -78,14 +79,18 @@ class ShivaSvCalling(val root: Configurable) extends QScript with SummaryQScript
mergeSVcalls
.
output
=
new
File
(
outputDir
,
sample
+
".merged.vcf"
)
add
(
mergeSVcalls
)
outputMergedVCFbySample
+=
(
sample
->
mergeSVcalls
.
output
)
}
else
{
outputMergedVCFbySample
+=
(
sample
->
callers
.
head
.
outputVCF
(
sample
).
get
)
}
}
if
(
inputBams
.
size
>
1
)
{
// merge all files from all samples in project
val
mergeSVcallsProject
=
new
Pysvtools
(
this
)
mergeSVcallsProject
.
input
=
outputMergedVCFbySample
.
values
.
toList
mergeSVcallsProject
.
output
=
outputMergedVCF
add
(
mergeSVcallsProject
)
}
// merging the VCF calls by project
// basicly this will do all samples from this pipeline run
// group by "tags"
...
...
@@ -104,7 +109,7 @@ class ShivaSvCalling(val root: Configurable) extends QScript with SummaryQScript
def
summarySettings
=
Map
(
"sv_callers"
->
configCallers
.
toList
)
/** Files for the summary */
def
summaryFiles
:
Map
[
String
,
File
]
=
Map
(
"final_mergedvcf"
->
outputMergedVCF
)
def
summaryFiles
:
Map
[
String
,
File
]
=
Map
(
"final_mergedvcf"
->
(
if
(
inputBams
.
size
>
1
)
outputMergedVCF
else
outputMergedVCFbySample
.
values
.
head
)
)
}
object
ShivaSvCalling
extends
PipelineCommand
\ No newline at end of file
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