HaplotypeCallerAllele.scala 697 Bytes
Newer Older
1
2
3
4
package nl.lumc.sasc.biopet.pipelines.gatk.variantcallers

import nl.lumc.sasc.biopet.pipelines.shiva.variantcallers.Variantcaller
import nl.lumc.sasc.biopet.utils.config.Configurable
5
import nl.lumc.sasc.biopet.extensions.gatk.broad
6
7
8
9
10
11
12

/** Allele mode for Haplotypecaller */
class HaplotypeCallerAllele(val root: Configurable) extends Variantcaller {
  val name = "haplotypecaller_allele"
  protected def defaultPrio = 5

  def biopetScript() {
13
    val hc = broad.HaplotypeCaller(this, inputBams.values.toList, outputFile)
14
15
16
17
18
    hc.alleles = config("input_alleles")
    hc.genotyping_mode = org.broadinstitute.gatk.tools.walkers.genotyper.GenotypingOutputMode.GENOTYPE_GIVEN_ALLELES
    add(hc)
  }
}