Commit 35bd64d6 authored by Peter van 't Hof's avatar Peter van 't Hof

Make output name required

parent e7437482
...@@ -23,10 +23,7 @@ class GearsCentrifuge(val root: Configurable) extends QScript with SummaryQScrip ...@@ -23,10 +23,7 @@ class GearsCentrifuge(val root: Configurable) extends QScript with SummaryQScrip
def init(): Unit = { def init(): Unit = {
require(fastqR1 != null) require(fastqR1 != null)
if (outputName == null) outputName = fastqR1.getName require(outputName != null)
.stripSuffix(".gz")
.stripSuffix(".fq")
.stripSuffix(".fastq")
} }
def biopetScript(): Unit = { def biopetScript(): Unit = {
......
...@@ -41,10 +41,7 @@ class GearsKraken(val root: Configurable) extends QScript with SummaryQScript wi ...@@ -41,10 +41,7 @@ class GearsKraken(val root: Configurable) extends QScript with SummaryQScript wi
def init(): Unit = { def init(): Unit = {
require(fastqR1 != null) require(fastqR1 != null)
if (outputName == null) outputName = fastqR1.getName require(outputName != null)
.stripSuffix(".gz")
.stripSuffix(".fq")
.stripSuffix(".fastq")
} }
lazy val krakenConvertToFasta: Boolean = config("kraken_discard_quality", default = false) lazy val krakenConvertToFasta: Boolean = config("kraken_discard_quality", default = false)
......
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