Skip to content
Snippets Groups Projects
Commit 38be849b authored by bow's avatar bow
Browse files

Merge branch 'feature-fix_sortsam' into 'develop'

Feature fix sortsam

See #20

See merge request !36
parents ef085f81 9cc92504
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