UnifiedGenotyperAllele.scala 1.52 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
 * Biopet is built on top of GATK Queue for building bioinformatic
 * pipelines. It is mainly intended to support LUMC SHARK cluster which is running
 * SGE. But other types of HPC that are supported by GATK Queue (such as PBS)
 * should also be able to execute Biopet tools and pipelines.
 *
 * Copyright 2014 Sequencing Analysis Support Core - Leiden University Medical Center
 *
 * Contact us at: sasc@lumc.nl
 *
 * A dual licensing mode is applied. The source code within this project is freely available for non-commercial use under an AGPL
 * license; For commercial users or users who do not want to follow the AGPL
 * license, please contact us to obtain a separate license.
 */
Peter van 't Hof's avatar
Peter van 't Hof committed
15
16
17
18
19
/**
 * Due to the license issue with GATK, this part of Biopet can only be used inside the
 * LUMC. Please refer to https://git.lumc.nl/biopet/biopet/wikis/home for instructions
 * on how to use this protected part of biopet or contact us at sasc@lumc.nl
 */
20
package nl.lumc.sasc.biopet.pipelines.shiva.variantcallers
21

Peter van 't Hof's avatar
Peter van 't Hof committed
22
import nl.lumc.sasc.biopet.extensions.gatk
23
import nl.lumc.sasc.biopet.utils.config.Configurable
24
25
26
27
28
29

/** Allele mode for GenotyperAllele */
class UnifiedGenotyperAllele(val root: Configurable) extends Variantcaller {
  val name = "unifiedgenotyper_allele"
  protected def defaultPrio = 9

Peter van 't Hof's avatar
Peter van 't Hof committed
30
  lazy val alleles: File = config("input_alleles")
31

32
  def biopetScript() {
Peter van 't Hof's avatar
Peter van 't Hof committed
33
    val ug = gatk.UnifiedGenotyper(this, inputBams.values.toList, outputFile)
34
    ug.alleles = Some(alleles)
Peter van 't Hof's avatar
Peter van 't Hof committed
35
    ug.genotyping_mode = Some("GENOTYPE_GIVEN_ALLELES")
36
37
38
    add(ug)
  }
}