1 | <h2>${run.name}</h2> |
---|
2 | |
---|
3 | <h2>Details</h2> |
---|
4 | |
---|
5 | <ul> |
---|
6 | <li><label>Date</label><span class="value"><g:formatDate format="dd-MM-yyyy" date="${run.date}"/></span></li> |
---|
7 | <li><label>Supplier</label><span class="value">${run.supplier}</span></li> |
---|
8 | <li><label>Machine</label><span class="value">${run.machine}</span></li> |
---|
9 | <li><label>Parameter file</label><span class="value"><g:uploadedFile value="${run.parameterFile}" /></span></li> |
---|
10 | |
---|
11 | <li><label># files</label><span class="value">${run.numFiles()}</span></li> |
---|
12 | <li><label># sequences</label><span class="value">${run.numSequences()}</span></li> |
---|
13 | </ul> |
---|
14 | <% def runSamples = run.samples( assay.id ); %> |
---|
15 | <g:if test="${runSamples.size()}"> |
---|
16 | <h2>Samples</h2> |
---|
17 | <table class="paginate"> |
---|
18 | <thead> |
---|
19 | <tr> |
---|
20 | <th nowrap>Sample</th> |
---|
21 | <th nowrap>Sequence file</th> |
---|
22 | <th nowrap>Quality file</th> |
---|
23 | <th nowrap># sequences</th> |
---|
24 | <th nowrap>avg quality</th> |
---|
25 | </tr> |
---|
26 | </thead> |
---|
27 | <tbody> |
---|
28 | <g:each in="${runSamples}" var="assaySample"> |
---|
29 | <% def files = assaySample.sequenceData.findAll { it.sample.assay.id == assay.id }; %> |
---|
30 | <g:each in="${files}" var="data" status="i"> |
---|
31 | <tr> |
---|
32 | <td>${assaySample.sample.name}</td> |
---|
33 | <td><g:uploadedFile value="${data.sequenceFile}" /></td> |
---|
34 | <td> |
---|
35 | <g:if test="${data.qualityFile}"> |
---|
36 | <g:uploadedFile value="${data.qualityFile}" /> |
---|
37 | </g:if> |
---|
38 | </td> |
---|
39 | <td>${data.numSequences}</td> |
---|
40 | <td> |
---|
41 | <g:if test="${data.averageQuality > 0.0}"> |
---|
42 | <g:formatNumber number="${data.averageQuality}" format="0.0" /> |
---|
43 | </g:if> |
---|
44 | <g:else> |
---|
45 | - |
---|
46 | </g:else> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | </g:each> |
---|
50 | </g:each> |
---|
51 | </tbody> |
---|
52 | </table> |
---|
53 | </g:if> |
---|
54 | |
---|
55 | <h2>Delete run</h2> |
---|
56 | <g:if test="${run.sequenceData?.size()}"> |
---|
57 | <p> |
---|
58 | You can't delete this run because samples are associated with this run. |
---|
59 | </p> |
---|
60 | </g:if> |
---|
61 | <g:else> |
---|
62 | <g:if test="${run.assays?.size() > 1}"> |
---|
63 | <p>If you delete this run, it will also be deleted from the other assays it is associated to!</p> |
---|
64 | </g:if> |
---|
65 | <p><g:link onClick="return confirm( 'Are you sure you want to delete this run from the system?' );" controller="run" action="delete" id="${run.id}" params="[assayId: assay.id]">Delete this run from the system.</g:link></p> |
---|
66 | </g:else> |
---|