From 908ac3bddbda5f7cad8e9bd038c0a3b07f1bfb6b Mon Sep 17 00:00:00 2001 From: Peter van 't Hof <p.j.van_t_hof@lumc.nl> Date: Thu, 20 Aug 2015 13:00:08 +0200 Subject: [PATCH] Remove val, no need for it --- .../main/scala/nl/lumc/sasc/biopet/tools/RegionAfCount.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/RegionAfCount.scala b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/RegionAfCount.scala index 1cbaee619..292d7ea42 100644 --- a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/RegionAfCount.scala +++ b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/RegionAfCount.scala @@ -94,11 +94,10 @@ object RegionAfCount extends ToolCommand { val sums = for (r <- region) yield { val it = reader.query(r.getContig, r.getStart, r.getEnd) (for (v <- it) yield { - val bla = v.getAttribute("AF", 0) match { + (v.getAttribute("AF", 0) match { case a: util.ArrayList[_] => a.map(_.toString.toDouble).toArray case s => Array(s.toString.toDouble) - } - bla.sum + }).sum }).sum } reader.close() -- GitLab