Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirrors
biopet.biopet
Commits
06a147a3
Commit
06a147a3
authored
Apr 06, 2017
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding bqsr implementation
parent
f4458933
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/HaplotypeCallerAllele.scala
...ipelines/shiva/variantcallers/HaplotypeCallerAllele.scala
+8
-1
shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/UnifiedGenotyperAllele.scala
...pelines/shiva/variantcallers/UnifiedGenotyperAllele.scala
+8
-0
No files found.
shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/HaplotypeCallerAllele.scala
View file @
06a147a3
...
...
@@ -20,7 +20,7 @@
package
nl.lumc.sasc.biopet.pipelines.shiva.variantcallers
import
nl.lumc.sasc.biopet.extensions.gatk
import
nl.lumc.sasc.biopet.
utils.Logging
import
nl.lumc.sasc.biopet.
extensions.gatk.BqsrGather
import
nl.lumc.sasc.biopet.utils.config.Configurable
/** Allele mode for Haplotypecaller */
...
...
@@ -33,6 +33,13 @@ class HaplotypeCallerAllele(val parent: Configurable) extends Variantcaller {
def
biopetScript
()
{
val
hc
=
gatk
.
HaplotypeCaller
(
this
,
inputBams
.
values
.
toList
,
outputFile
)
hc
.
alleles
=
Some
(
alleles
)
hc
.
BQSR
=
if
(
inputBqsrFiles
.
isEmpty
)
None
else
{
val
gather
=
new
BqsrGather
gather
.
inputBqsrFiles
=
inputBqsrFiles
.
values
.
toList
gather
.
outputBqsrFile
=
new
File
(
outputDir
,
"bqsr.merge"
)
add
(
gather
)
Some
(
gather
.
outputBqsrFile
)
}
hc
.
genotyping_mode
=
Some
(
"GENOTYPE_GIVEN_ALLELES"
)
add
(
hc
)
}
...
...
shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/UnifiedGenotyperAllele.scala
View file @
06a147a3
...
...
@@ -20,6 +20,7 @@
package
nl.lumc.sasc.biopet.pipelines.shiva.variantcallers
import
nl.lumc.sasc.biopet.extensions.gatk
import
nl.lumc.sasc.biopet.extensions.gatk.BqsrGather
import
nl.lumc.sasc.biopet.utils.config.Configurable
/** Allele mode for GenotyperAllele */
...
...
@@ -33,6 +34,13 @@ class UnifiedGenotyperAllele(val parent: Configurable) extends Variantcaller {
val
ug
=
gatk
.
UnifiedGenotyper
(
this
,
inputBams
.
values
.
toList
,
outputFile
)
ug
.
alleles
=
Some
(
alleles
)
ug
.
genotyping_mode
=
Some
(
"GENOTYPE_GIVEN_ALLELES"
)
ug
.
BQSR
=
if
(
inputBqsrFiles
.
isEmpty
)
None
else
{
val
gather
=
new
BqsrGather
gather
.
inputBqsrFiles
=
inputBqsrFiles
.
values
.
toList
gather
.
outputBqsrFile
=
new
File
(
outputDir
,
"bqsr.merge"
)
add
(
gather
)
Some
(
gather
.
outputBqsrFile
)
}
add
(
ug
)
}
}
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