Skip to content
Snippets Groups Projects
Commit e548e078 authored by Pappas's avatar Pappas
Browse files

Fix for error whtn creatin the report

parent 4f5b8b61
No related branches found
No related tags found
No related merge requests found
......@@ -345,8 +345,7 @@ object BammetricsReport extends ReportBuilder {
val pathValues: Map[String, Array[Any]] = paths.map {
case (key, path) =>
val value = summary.getValueAsArray(sampleId, libId, path: _*)
require(value.isDefined, s"Sample: $sampleId, library: $libId on path: '${path.mkString(",")}' does not exist in summary")
key -> value.get
key -> value.getOrElse(Array())
}
require(pathValues.map(_._2.size).toList.distinct.size == 1, s"Arrays in summary does not have the same number of values, $paths")
pathValues
......
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