Commit 49b6b782 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Switch to lazy error

parent 608c6349
......@@ -17,6 +17,7 @@ package nl.lumc.sasc.biopet.pipelines.shiva.svcallers
import nl.lumc.sasc.biopet.extensions.delly.DellyCaller
import nl.lumc.sasc.biopet.extensions.gatk.CatVariants
import nl.lumc.sasc.biopet.extensions.picard.SortVcf
import nl.lumc.sasc.biopet.utils.Logging
import nl.lumc.sasc.biopet.utils.config.Configurable
/** Script for sv caller delly */
......@@ -77,7 +78,7 @@ class Delly(val root: Configurable) extends SvCaller {
catVariants.variant :+= delly.outputvcf
require(catVariants.variant.nonEmpty, "At least 1 SV-type should be selected for Delly")
if (catVariants.variant.isEmpty) Logging.addError("At least 1 SV-type should be selected for Delly")
Supports Markdown
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