Skip to content
Snippets Groups Projects
Commit 5c545796 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added gvcf mode

parent f6841e2c
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ package nl.lumc.sasc.biopet.pipelines.gatk ...@@ -2,6 +2,7 @@ package nl.lumc.sasc.biopet.pipelines.gatk
import nl.lumc.sasc.biopet.core.PipelineCommand import nl.lumc.sasc.biopet.core.PipelineCommand
import nl.lumc.sasc.biopet.core.config.Configurable 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 nl.lumc.sasc.biopet.pipelines.shiva.ShivaVariantcallingTrait
import org.broadinstitute.gatk.queue.QScript import org.broadinstitute.gatk.queue.QScript
...@@ -13,7 +14,8 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva ...@@ -13,7 +14,8 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva
def this() = this(null) def this() = this(null)
override def callers = { override def callers = {
new HaplotypeCallerAllele :: new HaplotypeCallerGvcf ::
new HaplotypeCallerAllele ::
new UnifiedGenotyperAllele :: new UnifiedGenotyperAllele ::
new UnifiedGenotyper :: new UnifiedGenotyper ::
new HaplotypeCaller :: new HaplotypeCaller ::
...@@ -69,7 +71,7 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva ...@@ -69,7 +71,7 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva
class UnifiedGenotyperAllele extends Variantcaller { class UnifiedGenotyperAllele extends Variantcaller {
val name = "unifiedgenotyper_allele" val name = "unifiedgenotyper_allele"
protected val defaultPrio = 6 protected val defaultPrio = 9
protected val defaultUse = false protected val defaultUse = false
def outputFile = new File(outputDir, namePrefix + "unifiedgenotyper_allele.vcf.gz") def outputFile = new File(outputDir, namePrefix + "unifiedgenotyper_allele.vcf.gz")
...@@ -83,6 +85,28 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva ...@@ -83,6 +85,28 @@ class ShivaVariantcallingGatk(val root: Configurable) extends QScript with Shiva
add(ug) 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 object ShivaVariantcallingGatk extends PipelineCommand
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment