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

Added gears as optional step into mapping

parent bbc185f4
......@@ -43,6 +43,11 @@
......@@ -19,6 +19,7 @@ import
import java.util.Date
import nl.lumc.sasc.biopet.core._
import nl.lumc.sasc.biopet.pipelines.gears.Gears
import nl.lumc.sasc.biopet.utils.config.Configurable
import nl.lumc.sasc.biopet.core.summary.SummaryQScript
import nl.lumc.sasc.biopet.extensions.bwa.{ BwaAln, BwaMem, BwaSampe, BwaSamse }
......@@ -273,6 +274,15 @@ class Mapping(val root: Configurable) extends QScript with SummaryQScript with S
add(Ln(this, bamFile, finalBamFile))
outputFiles += ("finalBamFile" -> finalBamFile.getAbsoluteFile)
if (config("unmapped_to_gears", default = false).asBoolean) {
val gears = new Gears(this)
gears.bamFile = Some(finalBamFile)
gears.outputDir = new File(outputDir, "gears")
if (config("generate_wig", default = false).asBoolean)
addAll(Bam2Wig(this, finalBamFile).functions)
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