Commit 9a7a81d7 authored by rhpvorderman's avatar rhpvorderman

Proper indexing summary maps

parent 491e3410
......@@ -98,10 +98,10 @@
"Duplicates" -> List("flagstats", "Duplicates"),
"NotPrimaryAlignment" -> List("flagstats", "NotPrimaryAlignment")
)
val total = alignmentSummaryResults(sample.id,libId)("All").getOrElse(0L).asInstanceOf[Long]
val mapped = alignmentSummaryResults(sample.id, libId)("Mapped").getOrElse(0L).asInstanceOf[Long]
val duplicates = alignmentSummaryResults(sample.id,libId)("Duplicates").getOrElse(0L).asInstanceOf[Long]
val secondary = alignmentSummaryResults(sample.id,libId)("NotPrimaryAlignment").getOrElse(0L).asInstanceOf[Long]
val total = alignmentSummaryResults((sample.id,libId.get))("All").getOrElse(0L).asInstanceOf[Long]
val mapped = alignmentSummaryResults((sample.id, libId.get))("Mapped").getOrElse(0L).asInstanceOf[Long]
val duplicates = alignmentSummaryResults((sample.id,libId.get))("Duplicates").getOrElse(0L).asInstanceOf[Long]
val secondary = alignmentSummaryResults((sample.id,libId.get))("NotPrimaryAlignment").getOrElse(0L).asInstanceOf[Long]
}#
<td>${total}</td>
<td>${mapped}</td>
......
......@@ -88,7 +88,7 @@
#if (libs.head != libId) <tr> #end
#if (!sampleLevel) <td><a href="${rootPath}Samples/${sample.name}/Libraries/${libName}/index.html">${libName}</a></td> #end
#{
val results: Map[String, Option[Any]] = clippingTableResults(sample.id, libId)
val results: Map[String, Option[Any]] = clippingTableResults((sample.id,libId.get))
}#
#for (field <- fields)
<td>${results(field)}</td>
......
......@@ -89,7 +89,7 @@
#if (libs.head != libId) <tr> #end
#if (!sampleLevel) <td><a href="${rootPath}Samples/${sample.name}/Libraries/${libName}/index.html">${libName}</a></td> #end
#{
val results: Map[String, Option[Any]] = insertSizeTableResults(sample.id, libId)
val results: Map[String, Option[Any]] = insertSizeTableResults((sample.id, libId.get))
}#
#for (field <- fields)
<td>${results(field)}</td>
......
......@@ -89,7 +89,7 @@
#if (libs.head != libId) <tr> #end
#if (!sampleLevel) <td><a href="${rootPath}Samples/${sample.name}/Libraries/${libName}/index.html">${libName}</a></td> #end
#{
val results: Map[String, Option[Any]] = mappingQualityTableResults(sample.id, libId)
val results: Map[String, Option[Any]] = mappingQualityTableResults((sample.id,libId.get))
}#
#for (field <- fields)
<td>${results(field)}</td>
......
......@@ -81,7 +81,7 @@
#if (libs.head != libId) <tr> #end
#if (!sampleLevel) <td><a href="${rootPath}Samples/${sample.name}/Libraries/${libName}/index.html">${libName}</a></td> #end
#{
val results = rnaHistogramTableResults(sample.id, libId)
val results = rnaHistogramTableResults((sample.id,libId.get))
}#
#for (field <- fields)
<td>${results(field)}</td>
......
......@@ -80,7 +80,7 @@
#if (libs.head != libId) <tr> #end
#if (!sampleLevel) <td><a href="${rootPath}Samples/${sample.name}/Libraries/${libName}/index.html">${libName}</a></td> #end
#{
val results = wgsHistogramTableResults(sample.id, libId)
val results = wgsHistogramTableResults((sample.id,libId.get))
}#
#for (field <- fields)
<td>${results(field)}</td>
......
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