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

Added BedToIntervalList extension

parent a4fd6fcd
No related branches found
No related tags found
No related merge requests found
package nl.lumc.sasc.biopet.extensions.picard
import java.io.File
import nl.lumc.sasc.biopet.core.config.Configurable
import org.broadinstitute.gatk.utils.commandline.{Output, Input}
/**
* Created by pjvan_thof on 4/15/15.
*/
class BedToIntervalList(val root: Configurable) extends Picard {
javaMainClass = new picard.util.BedToIntervalList().getClass.getName
@Input(doc = "Input bed file", required = true)
var input: File = null
@Input(doc = "Reference dict file", required = true)
var dict: File = new File(config("reference").asString.stripSuffix(".fa").stripSuffix(".fasta") + ".dict")
@Output(doc = "Output interval list", required = true)
var output: File = null
override def commandLine = super.commandLine +
required("SEQUENCE_DICTIONARY=", dict, spaceSeparated = false) +
required("INPUT=", input, spaceSeparated = false) +
required("OUTPUT=", output, spaceSeparated = false)
}
object BedToIntervalList {
def apply(root:Configurable, input:File, output:File): BedToIntervalList = {
val bi = new BedToIntervalList(root)
bi.input = input
bi.output = output
bi
}
}
\ 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