Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
5c545796
Commit
5c545796
authored
10 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added gvcf mode
parent
f6841e2c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
protected/biopet-gatk-pipelines/src/main/scala/nl/lumc/sasc/biopet/pipelines/gatk/ShivaVariantcallingGatk.scala
+26
-2
26 additions, 2 deletions
.../sasc/biopet/pipelines/gatk/ShivaVariantcallingGatk.scala
with
26 additions
and
2 deletions
protected/biopet-gatk-pipelines/src/main/scala/nl/lumc/sasc/biopet/pipelines/gatk/ShivaVariantcallingGatk.scala
+
26
−
2
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment