Commit cbbd03b7 authored by Peter van 't Hof's avatar Peter van 't Hof Committed by GitHub

Merge branch 'develop' into Fix-BIOPET-479

parents 1e46be60 0140969c
......@@ -126,6 +126,9 @@ trait BiopetQScript extends Configurable with GatkLogging { qscript: QScript =>
}
})
val writeHtmlReport: Boolean = config("write_html_report", default = true)
if (writeHtmlReport) {
logger.info("Adding report")
this match {
case q: MultiSampleQScript if q.onlySamples.nonEmpty && !q.samples.forall(x => q.onlySamples.contains(x._1)) =>
......@@ -139,6 +142,7 @@ trait BiopetQScript extends Configurable with GatkLogging { qscript: QScript =>
add(report)
}
}
}
if (!skipWriteDependencies) WriteDependencies.writeDependencies(
functions,
......
......@@ -33,7 +33,7 @@ class BwaMem(val parent: Configurable) extends Bwa with Reference {
var R2: File = _
@Input(doc = "The reference file for the bam files.", shortName = "R")
var reference: File = null
var reference: File = _
@Output(doc = "Output file SAM", shortName = "output")
var output: File = _
......@@ -42,7 +42,7 @@ class BwaMem(val parent: Configurable) extends Bwa with Reference {
var k: Option[Int] = config("k")
var r: Option[Float] = config("r")
var S: Boolean = config("S", default = false)
var M: Boolean = config("M", default = true)
var M: Boolean = config("M", default = false)
var w: Option[Int] = config("w")
var d: Option[Int] = config("d")
var c: Option[Int] = config("c")
......@@ -75,7 +75,7 @@ class BwaMem(val parent: Configurable) extends Bwa with Reference {
if (reference == null) reference = referenceFasta()
}
def cmdLine = {
def cmdLine: String = {
required(executable) +
required("mem") +
optional("-k", k) +
......
......@@ -38,6 +38,8 @@ class CleverFixVCF(val parent: Configurable) extends BiopetJavaCommandLineFuncti
@Argument(doc = "Samplename")
var sampleName: String = _
override def defaultCoreMemory = 4.0
override def cmdLine = super.cmdLine +
required("-i", input) +
required("-o", output) +
......
......@@ -36,11 +36,6 @@ class HaplotypeCallerGvcf(val parent: Configurable) extends Variantcaller {
override def fixedValues = Map("haplotypecaller" -> Map("emitRefConfidence" -> "GVCF"))
override def defaults = Map("haplotypecaller" -> Map(
"variant_index_type" -> "LINEAR",
"variant_index_parameter" -> 128000)
)
def biopetScript() {
gVcfFiles = for ((sample, inputBam) <- inputBams) yield {
val hc = gatk.HaplotypeCaller(this, List(inputBam), new File(outputDir, sample + ".gvcf.vcf.gz"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment