bamStats.ssp 764 Bytes
Newer Older
1
#import(nl.lumc.sasc.biopet.utils.summary.Summary)
Peter van 't Hof's avatar
Peter van 't Hof committed
2 3 4 5 6 7 8 9 10 11 12 13 14
#import(nl.lumc.sasc.biopet.core.report.ReportPage)
<%@ var summary: Summary %>
<%@ var sampleId: Option[String] %>
<%@ var libId: Option[String] = None %>
<%@ var rootPath: String %>
<%@ var metricsTag: String = "bammetrics" %>
<%@ var fields: List[String] = List("All", "Mapped", "Duplicates", "MAPQ>30", "MateUnmapped", "Mate on other chr")%>

<table>
<tbody>
#for (field <- fields)
    <tr><th>${field}</th><td>
    #if (libId.isDefined)
15
        ${summary.getLibraryValue(sampleId.get, libId.get, metricsTag, "stats", "bamstats", "flagstats", field)}
Peter van 't Hof's avatar
Peter van 't Hof committed
16
    #else
17
        ${summary.getSampleValue(sampleId.get, metricsTag, "stats", "bamstats", "flagstats", field)}
Peter van 't Hof's avatar
Peter van 't Hof committed
18 19 20 21 22
    #end
    </td></tr>
#end
</tbody>
</table>