Commit 4ac25c6a authored by Peter van 't Hof's avatar Peter van 't Hof

Added condinal arg

parent ad20fbd3
......@@ -137,7 +137,6 @@ class GenotypeGVCFs(val root: Configurable) extends CommandLineGATK with Scatter
optional("-hets", heterozygosity, spaceSeparated = true, escape = true, format = heterozygosityFormat) +
optional("-indelHeterozygosity", indel_heterozygosity, spaceSeparated = true, escape = true, format = indel_heterozygosityFormat) +
optional("-stand_call_conf", standard_min_confidence_threshold_for_calling, spaceSeparated = true, escape = true, format = standard_min_confidence_threshold_for_callingFormat) +
optional("-stand_emit_conf", standard_min_confidence_threshold_for_emitting, spaceSeparated = true, escape = true, format = standard_min_confidence_threshold_for_emittingFormat) +
optional("-maxAltAlleles", max_alternate_alleles, spaceSeparated = true, escape = true, format = "%s") +
repeat("-inputPrior", input_prior, spaceSeparated = true, escape = true, format = "%s") +
optional("-ploidy", sample_ploidy, spaceSeparated = true, escape = true, format = "%s") +
......@@ -146,7 +145,12 @@ class GenotypeGVCFs(val root: Configurable) extends CommandLineGATK with Scatter
optional(TaggedFile.formatCommandLineParameter("-D", dbsnp.getOrElse(null)), dbsnp, spaceSeparated = true, escape = true, format = "%s") +
conditional(filter_reads_with_N_cigar, "-filterRNC", escape = true, format = "%s") +
conditional(filter_mismatching_base_and_quals, "-filterMBQ", escape = true, format = "%s") +
conditional(filter_bases_not_stored, "-filterNoBases", escape = true, format = "%s")
conditional(filter_bases_not_stored, "-filterNoBases", escape = true, format = "%s") +
(this.getVersion match {
case Some(s) if s.contains("3.0") | s.contains("3.1") | s.contains("3.2") | s.contains("3.3") | s.contains("3.4") | s.contains("3.5") | s.contains("3.6") =>
optional("-stand_emit_conf", standard_min_confidence_threshold_for_emitting, spaceSeparated = true, escape = true, format = standard_min_confidence_threshold_for_emittingFormat)
case _ => ""
})
}
object GenotypeGVCFs {
......
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