gatk-3.8/scala/qscript/examples/ExampleCountLoci.scala

34 lines
964 B
Scala

import org.broadinstitute.sting.queue.QScript
import org.broadinstitute.sting.queue.extensions.gatk._
/**
* An introductory pipeline with integration tests testing the MD5 of the @Output.
*/
class ExampleCountLoci extends QScript {
@Input(doc="The path to the GenomeAnalysisTK.jar file.", shortName="gatk")
var gatkJar: File = null
@Input(doc="The reference file for the bam files.", shortName="R")
var referenceFile: File = null
@Input(doc="One or more bam files.", shortName="I")
var bamFiles: List[File] = Nil
@Input(doc="Intervals to traverse.", shortName="L", required=false)
var intervals: List[String] = Nil
@Output
var out: File = _
def script = {
val countLoci = new CountLoci
countLoci.jarFile = gatkJar
countLoci.reference_sequence = referenceFile
countLoci.input_file = bamFiles
countLoci.intervalsString = intervals
countLoci.out = out
countLoci.memoryLimit = Some(1)
add(countLoci)
}
}