Commit f2645096 authored by Peter van 't Hof's avatar Peter van 't Hof

Fix insertsize table

parent afbc3f9b
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<th data-sorted="true" data-sorted-direction="ascending">Sample</th> <th data-sorted="true" data-sorted-direction="ascending">Sample</th>
#if (!sampleLevel) <th>Library</th> #end #if (!sampleLevel) <th>Library</th> #end
#for (field <- fields) #for (field <- fields)
<th>${field}</th> <th>${field.replaceAll("_", " ")}</th>
#end #end
</tr></thead> </tr></thead>
<tbody> <tbody>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
val prefixPath = List("samples", sample) ::: (if (libId.isEmpty) Nil else List("libraries", libId)) ::: List("bammetrics", "stats") val prefixPath = List("samples", sample) ::: (if (libId.isEmpty) Nil else List("libraries", libId)) ::: List("bammetrics", "stats")
val fieldValues = for (field <- fields) yield { val fieldValues = for (field <- fields) yield {
summary.getValue((prefixPath ::: List(metricsTag, "stats", "insert_size_metrics", field)):_*) summary.getValue((prefixPath ::: List("CollectInsertSizeMetrics", "metrics", field.toUpperCase)):_*).getOrElse(prefixPath ::: metricsTag :: Nil)
} }
}# }#
#for (value <- fieldValues) #for (value <- fieldValues)
......
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