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

Fixing fix-BIOPET-506

parent c779f1f0
...@@ -80,8 +80,6 @@ class Flexiprep(val root: Configurable) extends QScript with SummaryQScript with ...@@ -80,8 +80,6 @@ class Flexiprep(val root: Configurable) extends QScript with SummaryQScript with
if (inputR1 == null) Logging.addError("Missing input R1 on flexiprep module") if (inputR1 == null) Logging.addError("Missing input R1 on flexiprep module")
else { else {
paired = inputR2.isDefined
inputFiles :+= new InputFile(inputR1) inputFiles :+= new InputFile(inputR1)
inputR2.foreach(inputFiles :+= new InputFile(_)) inputR2.foreach(inputFiles :+= new InputFile(_))
...@@ -89,6 +87,7 @@ class Flexiprep(val root: Configurable) extends QScript with SummaryQScript with ...@@ -89,6 +87,7 @@ class Flexiprep(val root: Configurable) extends QScript with SummaryQScript with
inputR2.foreach { fileR2 => inputR2.foreach { fileR2 =>
paired = true paired = true
R2Name = getUncompressedFileName(fileR2) R2Name = getUncompressedFileName(fileR2)
if (fileR2 == inputR1) Logging.addError(s"R1 and R2 for $sampleId -> $libId are the same")
} }
} }
} }
......
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