diff --git a/scala/src/org/broadinstitute/sting/queue/function/scattergather/FixMatesGatherFunction.scala b/scala/src/org/broadinstitute/sting/queue/function/scattergather/FixMatesGatherFunction.scala new file mode 100644 index 000000000..cc4d1e828 --- /dev/null +++ b/scala/src/org/broadinstitute/sting/queue/function/scattergather/FixMatesGatherFunction.scala @@ -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)) +}