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

Added index as output file

parent 9b5aa989
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,14 @@ class MarkDuplicates(val root: Configurable) extends Picard {
@Argument(doc = "OPTICAL_DUPLICATE_PIXEL_DISTANCE", required = false)
var opticalDuplicatePixelDistance: Option[Int] = config("opticalDuplicatePixelDistance")
@Output(doc = "Bam Index", required = true)
private var outputIndex: File = _
override def afterGraph {
super.afterGraph
if (createIndex) outputIndex = new File(output.getAbsolutePath.stripSuffix(".bam") + ".bai")
}
override def commandLine = super.commandLine +
repeat("INPUT=", input, spaceSeparated = false) +
required("OUTPUT=", output, spaceSeparated = false) +
......
......@@ -16,6 +16,14 @@ class SortSam(val root: Configurable) extends Picard {
@Argument(doc = "Sort order of output file Required. Possible values: {unsorted, queryname, coordinate} ", required = true)
var sortOrder: String = _
@Output(doc = "Bam Index", required = true)
private var outputIndex: File = _
override def afterGraph {
super.afterGraph
if (createIndex) outputIndex = new File(output.getAbsolutePath.stripSuffix(".bam") + ".bai")
}
override def commandLine = super.commandLine +
required("INPUT=", input, spaceSeparated = false) +
required("OUTPUT=", output, spaceSeparated = false) +
......
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