BiopetQScript.scala 901 Bytes
Newer Older
1
2
3
4
package nl.lumc.sasc.biopet.core

//import org.broadinstitute.sting.queue.QScript
import java.io.File
Peter van 't Hof's avatar
Peter van 't Hof committed
5
import nl.lumc.sasc.biopet.core.config._
6
import org.broadinstitute.sting.commandline._
7
import org.broadinstitute.sting.queue.function.QFunction
8

9
10
11
trait BiopetQScript extends Configurable {
  @Argument(doc="Config Json file",shortName="config", required=false)
  val configfiles: List[File] = Nil
12
  
13
14
  @Argument(doc="Output directory", shortName="outputDir", required=true)
  var outputDir: String = _
15
  
16
  var outputFiles:Map[String,File] = Map()
17
  
18
19
20
21
22
23
24
  def init
  def biopetScript
  
  final def script() {
    init
    biopetScript
    // TODO: Config report
25
  }
26
27
28
29
30
31
32
33
  
  def add(functions: QFunction*) // Gets implemeted at org.broadinstitute.sting.queue.QScript
  def add(function: QFunction, isIntermediate:Boolean = false) {
    function.isIntermediate = isIntermediate
    add(function)
  }
  
  
34
}