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
5c545796
Commit
5c545796
authored
Feb 27, 2015
by
Peter van 't Hof
Browse files
Added gvcf mode
parent
f6841e2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
protected/biopet-gatk-pipelines/src/main/scala/nl/lumc/sasc/biopet/pipelines/gatk/ShivaVariantcallingGatk.scala
View file @
5c545796
...
...
@@ -2,6 +2,7 @@ package nl.lumc.sasc.biopet.pipelines.gatk
import
nl.lumc.sasc.biopet.core.PipelineCommand
import
nl.lumc.sasc.biopet.core.config.Configurable
import
nl.lumc.sasc.biopet.extensions.gatk.broad.GenotypeGVCFs
import
nl.lumc.sasc.biopet.pipelines.shiva.ShivaVariantcallingTrait
import
org.broadinstitute.gatk.queue.QScript
...
...
@@ -13,7 +14,8 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva
def
this
()
=
this
(
null
)
override
def
callers
=
{
new
HaplotypeCallerAllele
::
new
HaplotypeCallerGvcf
::
new
HaplotypeCallerAllele
::
new
UnifiedGenotyperAllele
::
new
UnifiedGenotyper
::
new
HaplotypeCaller
::
...
...
@@ -69,7 +71,7 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva
class
UnifiedGenotyperAllele
extends
Variantcaller
{
val
name
=
"unifiedgenotyper_allele"
protected
val
defaultPrio
=
6
protected
val
defaultPrio
=
9
protected
val
defaultUse
=
false
def
outputFile
=
new
File
(
outputDir
,
namePrefix
+
"unifiedgenotyper_allele.vcf.gz"
)
...
...
@@ -83,6 +85,28 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva
add
(
ug
)
}
}
class
HaplotypeCallerGvcf
extends
Variantcaller
{
val
name
=
"haplotypecaller_gvcf"
protected
val
defaultPrio
=
5
protected
val
defaultUse
=
false
def
outputFile
=
new
File
(
outputDir
,
namePrefix
+
"haplotypecaller_gvcf.vcf.gz"
)
def
addJobs
()
{
val
gvcfFiles
=
for
(
inputBam
<-
inputBams
)
yield
{
val
hc
=
new
nl
.
lumc
.
sasc
.
biopet
.
extensions
.
gatk
.
broad
.
HaplotypeCaller
(
qscript
)
hc
.
input_file
=
List
(
inputBam
)
hc
.
out
=
new
File
(
outputDir
,
inputBam
.
getName
.
stripSuffix
(
".bam"
)
+
".gvcf.gz"
)
hc
.
useGvcf
()
add
(
hc
)
hc
.
out
}
val
genotypeGVCFs
=
GenotypeGVCFs
(
qscript
,
gvcfFiles
,
outputFile
)
add
(
genotypeGVCFs
)
}
}
}
object
ShivaVariantcallingGatk
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