Commit d3cbde68 authored by Peter van 't Hof's avatar Peter van 't Hof

Fix checks

parent db93e4e0
......@@ -82,11 +82,8 @@ class ShivaVariantcalling(val root: Configurable) extends QScript
/** This will add jobs for this pipeline */
def biopetScript(): Unit = {
if (inputBams.isEmpty) {
Logging.addError("No input bams found")
inputBams = Map("test" -> new File("."))
}
if (callers.isEmpty) Logging.addError("must select at least 1 variantcaller, choices are: " + ShivaVariantcalling.callersList(this).map(_.name).mkString(", "))
require(inputBams.nonEmpty, "No input bams found")
require(callers.nonEmpty, "must select at least 1 variantcaller, choices are: " + ShivaVariantcalling.callersList(this).map(_.name).mkString(", "))
if (!callers.exists(_.mergeVcfResults)) Logging.addError("must select at least 1 variantcaller where merge_vcf_results is true")
addAll(dbsnpVcfFile.map(Shiva.makeValidateVcfJobs(this, _, referenceFasta(), new File(outputDir, ".validate"))).getOrElse(Nil))
......
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