Since Picard's FixMateInformation merges, fixes mates, and sorts, allow it to be used as a gather function.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3891 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
e1a34685fd
commit
cd9395fa14
|
|
@ -0,0 +1,17 @@
|
||||||
|
package org.broadinstitute.sting.queue.function.scattergather
|
||||||
|
|
||||||
|
import java.io.File
|
||||||
|
import org.broadinstitute.sting.commandline.Input
|
||||||
|
|
||||||
|
class BamGatherFunction extends GatherFunction {
|
||||||
|
type GatherType = File
|
||||||
|
|
||||||
|
@Input(doc="Picard FixMateInformation.jar. At the Broad this can be found at /seq/software/picard/current/bin/FixMateInformation.jar. Outside the broad see http://picard.sourceforge.net/")
|
||||||
|
var picardFixMatesJar: String = _
|
||||||
|
|
||||||
|
@Input(doc="Compression level 1-9", required=false)
|
||||||
|
var picardMergeCompressionLevel: Option[Int] = None
|
||||||
|
|
||||||
|
def commandLine = "java -Djava.io.tmpdir=/broad/shptmp/queue -jar %s%s%s%s".format(picardFixMatesJar,
|
||||||
|
optional(" COMPRESSION_LEVEL=", picardMergeCompressionLevel), " VALIDATION_STRINGENCY=SILENT SO=coordinate OUTPUT=" + originalOutput, repeat(" INPUT=", gatherParts))
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue