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

Fetch all versions used in the pipeline

parent 277fdc25
#import(nl.lumc.sasc.biopet.core.summary.Summary)
#import(nl.lumc.sasc.biopet.core.report.ReportPage)
<%@ var summary: Summary %>
<%@ var rootPath: String %>
<%@ var sampleId: Option[String] = None %>
<%@ var libId: Option[String] = None %>
#{
val pipeline = summary.getValue("meta", "pipeline_name").getOrElse("").toString
val executables = summary.getLibraryValue(sampleId, libId, pipeline, "executables").getOrElse(Map()).asInstanceOf[Map[String, Map[String, Any]]]
}#
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Version</th>
</tr>
</thead>
<tbody>
#for (name <- executables.keySet.toList.sorted)
<tr>
<td>${name}</td>
#{
val version = executables(name).get("version") match {
case Some(x) if x != None => x.toString
case _ => "N/A"
}
}#
<td>${version}</td>
</tr>
#end
</tbody>
</table>
\ No newline at end of file
......@@ -25,7 +25,9 @@ object ShivaReport extends MultisampleReportBuilder {
Map(
"Samples" -> generateSamplesPage(pageArgs),
"Files" -> filesPage,
"Versions" -> ReportPage(Map(), List(), Map())
"Versions" -> ReportPage(Map(), List((
"Executables" -> ReportSection("/nl/lumc/sasc/biopet/core/report/executables.ssp"
))), Map())
),
List(
"Report" -> ReportSection("/nl/lumc/sasc/biopet/pipelines/shiva/shivaFront.ssp"),
......
Supports Markdown
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