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

Fixed typo

parent c116ce0a
......@@ -126,7 +126,7 @@ object BamStats extends ToolCommand {
def aggregateStats(table: Map[String, Array[Long]]): Map[String, Any] = {
val values = table("value")
val counts = table("counts")
val counts = table("count")
val modal = values(counts.indexOf(counts.max))
val totalCounts = counts.sum
val mean: Double = values.zip(counts).map(x => x._1 * x._2).sum.toDouble / totalCounts
......
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