Skip to content
Snippets Groups Projects
Commit 59ae18bd authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Switch to originals

parent 31a37666
No related branches found
No related tags found
No related merge requests found
......@@ -89,8 +89,7 @@ object RegionAfCount extends ToolCommand {
case a: util.ArrayList[_] => a.map(_.toString.toDouble).toArray
case s => Array(s.toString.toDouble)
}).sum
bedRecords
.overlapWith(BedRecord(variant.getContig, variant.getStart, variant.getEnd))
region.originals
.map(_.name.getOrElse("error"))
.distinct
.foreach(name => afCounts += name -> (afCounts.getOrElse(name, 0.0) + sum))
......
......@@ -4,7 +4,6 @@ import java.io.File
import nl.lumc.sasc.biopet.core.ToolCommand
import nl.lumc.sasc.biopet.utils.intervals.BedRecordList
import nl.lumc.sasc.biopet.utils.intervals.BedRecord
/**
* Created by pjvanthof on 22/08/15.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment