sampleVariants.ssp 889 Bytes
Newer Older
1 2 3 4
#import(nl.lumc.sasc.biopet.core.summary.Summary)
#import(nl.lumc.sasc.biopet.core.report.ReportPage)
<%@ var summary: Summary %>
<%@ var sampleId: Option[String] = None %>
5
<%@ var rootPath: String %>
6 7 8 9 10 11 12 13 14 15 16 17 18 19
#{
    val fields = List("Hom", "HomVar", "HomRef", "NoCall", "Variant", "NonInformative", "Total")
    val samples = sampleId match {
        case Some(sample) => List(sample.toString)
        case _ => summary.samples.toList
    }
}#

<table>
<thead><tr><th>Sample</th>
#for (field <- fields) <th>${field}</th> #end
</tr></thead>
<tbody>
    #for (sample <- samples.toList.sorted)
20
        <tr><td><a href="${rootPath}Samples/${sample}/index.html">${sample}</a></td>
21 22 23 24 25 26 27
        #for (field <- fields)
            <td>${summary.getSampleValue(sample, "shivavariantcalling", "stats", "multisample-vcfstats-final", "genotype", field)}</td>
        #end
        </tr>
    #end
</tbody>
</table>