2641 |
09 Sep 14 |
nicklas |
1 |
<%@ page |
2641 |
09 Sep 14 |
nicklas |
2 |
pageEncoding="UTF-8" |
2641 |
09 Sep 14 |
nicklas |
3 |
session="false" |
2641 |
09 Sep 14 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
2641 |
09 Sep 14 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
2641 |
09 Sep 14 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
2641 |
09 Sep 14 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
2641 |
09 Sep 14 |
nicklas |
8 |
import="net.sf.basedb.util.Values" |
2641 |
09 Sep 14 |
nicklas |
9 |
import="net.sf.basedb.clients.web.Base" |
2641 |
09 Sep 14 |
nicklas |
10 |
import="net.sf.basedb.clients.web.util.HTML" |
2641 |
09 Sep 14 |
nicklas |
11 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2641 |
09 Sep 14 |
nicklas |
12 |
%> |
2641 |
09 Sep 14 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2641 |
09 Sep 14 |
nicklas |
14 |
<% |
3976 |
26 May 16 |
nicklas |
15 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
2641 |
09 Sep 14 |
nicklas |
16 |
final String ID = sc.getId(); |
2641 |
09 Sep 14 |
nicklas |
17 |
final float scale = Base.getScale(sc); |
2641 |
09 Sep 14 |
nicklas |
18 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
2641 |
09 Sep 14 |
nicklas |
19 |
DbControl dc = null; |
2641 |
09 Sep 14 |
nicklas |
20 |
try |
2641 |
09 Sep 14 |
nicklas |
21 |
{ |
2641 |
09 Sep 14 |
nicklas |
22 |
dc = sc.newDbControl(); |
2641 |
09 Sep 14 |
nicklas |
23 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
2641 |
09 Sep 14 |
nicklas |
24 |
|
2641 |
09 Sep 14 |
nicklas |
25 |
int seqRunId = Values.getInt(request.getParameter("seqrun")); |
2642 |
09 Sep 14 |
nicklas |
26 |
String readString = Values.getStringOrNull(request.getParameter("readString")); |
2910 |
10 Nov 14 |
nicklas |
27 |
String omitLanes = Values.getStringOrNull(request.getParameter("omitLanes")); |
2641 |
09 Sep 14 |
nicklas |
28 |
%> |
2641 |
09 Sep 14 |
nicklas |
29 |
<base:page type="popup" title="Check data files"> |
2641 |
09 Sep 14 |
nicklas |
30 |
<base:head |
2641 |
09 Sep 14 |
nicklas |
31 |
scripts="~check_data_files.js,~../reggie-2.js" |
2641 |
09 Sep 14 |
nicklas |
32 |
styles="path.css,~../css/reggie-2.css" |
2641 |
09 Sep 14 |
nicklas |
33 |
> |
2641 |
09 Sep 14 |
nicklas |
34 |
<style> |
2641 |
09 Sep 14 |
nicklas |
35 |
|
2641 |
09 Sep 14 |
nicklas |
36 |
#lanes-section tr |
2641 |
09 Sep 14 |
nicklas |
37 |
{ |
2641 |
09 Sep 14 |
nicklas |
38 |
vertical-align: baseline; |
2641 |
09 Sep 14 |
nicklas |
39 |
} |
2641 |
09 Sep 14 |
nicklas |
40 |
|
2641 |
09 Sep 14 |
nicklas |
41 |
#lanes-section .status |
2641 |
09 Sep 14 |
nicklas |
42 |
{ |
2641 |
09 Sep 14 |
nicklas |
43 |
width: 20px; |
2641 |
09 Sep 14 |
nicklas |
44 |
max-width: 20px; |
2641 |
09 Sep 14 |
nicklas |
45 |
min-width: 20px; |
2641 |
09 Sep 14 |
nicklas |
46 |
background-repeat: no-repeat; |
2641 |
09 Sep 14 |
nicklas |
47 |
background-position: 50% 2px; |
2641 |
09 Sep 14 |
nicklas |
48 |
} |
2641 |
09 Sep 14 |
nicklas |
49 |
|
2641 |
09 Sep 14 |
nicklas |
50 |
#lanes-section .status.checking |
2641 |
09 Sep 14 |
nicklas |
51 |
{ |
2641 |
09 Sep 14 |
nicklas |
52 |
background-image: url('../images/loading-small.gif'); |
2641 |
09 Sep 14 |
nicklas |
53 |
} |
2641 |
09 Sep 14 |
nicklas |
54 |
|
2641 |
09 Sep 14 |
nicklas |
55 |
#lanes-section .checking .message |
2641 |
09 Sep 14 |
nicklas |
56 |
{ |
2641 |
09 Sep 14 |
nicklas |
57 |
font-weight: bold; |
2641 |
09 Sep 14 |
nicklas |
58 |
font-style: italic; |
2641 |
09 Sep 14 |
nicklas |
59 |
color: #999999; |
2641 |
09 Sep 14 |
nicklas |
60 |
} |
2641 |
09 Sep 14 |
nicklas |
61 |
|
2641 |
09 Sep 14 |
nicklas |
62 |
#lanes-section .status.valid |
2641 |
09 Sep 14 |
nicklas |
63 |
{ |
2641 |
09 Sep 14 |
nicklas |
64 |
background-image: url('../images/ok.png'); |
2641 |
09 Sep 14 |
nicklas |
65 |
} |
2641 |
09 Sep 14 |
nicklas |
66 |
|
2642 |
09 Sep 14 |
nicklas |
67 |
#lanes-section .status.warning |
2642 |
09 Sep 14 |
nicklas |
68 |
{ |
2642 |
09 Sep 14 |
nicklas |
69 |
background-image: url('../images/warning.png'); |
2642 |
09 Sep 14 |
nicklas |
70 |
} |
2642 |
09 Sep 14 |
nicklas |
71 |
|
2641 |
09 Sep 14 |
nicklas |
72 |
#lanes-section .status.invalid |
2641 |
09 Sep 14 |
nicklas |
73 |
{ |
2641 |
09 Sep 14 |
nicklas |
74 |
background-image: url('../images/error.png'); |
2641 |
09 Sep 14 |
nicklas |
75 |
color: #CC0000; |
2641 |
09 Sep 14 |
nicklas |
76 |
} |
2641 |
09 Sep 14 |
nicklas |
77 |
|
2641 |
09 Sep 14 |
nicklas |
78 |
#lanes-section .invalid .message |
2641 |
09 Sep 14 |
nicklas |
79 |
{ |
2641 |
09 Sep 14 |
nicklas |
80 |
color: #CC0000; |
5531 |
27 Jun 19 |
nicklas |
81 |
max-height: 5em; |
2641 |
09 Sep 14 |
nicklas |
82 |
overflow: auto; |
2645 |
10 Sep 14 |
nicklas |
83 |
white-space: pre-wrap; |
2645 |
10 Sep 14 |
nicklas |
84 |
border-bottom: 1px solid #A0A0A0; |
2641 |
09 Sep 14 |
nicklas |
85 |
} |
2641 |
09 Sep 14 |
nicklas |
86 |
|
2641 |
09 Sep 14 |
nicklas |
87 |
|
2641 |
09 Sep 14 |
nicklas |
88 |
</style> |
2641 |
09 Sep 14 |
nicklas |
89 |
</base:head> |
2641 |
09 Sep 14 |
nicklas |
90 |
<base:body> |
2641 |
09 Sep 14 |
nicklas |
91 |
<h1>Check data files</h1> |
2641 |
09 Sep 14 |
nicklas |
92 |
|
2641 |
09 Sep 14 |
nicklas |
93 |
<div id="page-data" class="datacontainer" |
2641 |
09 Sep 14 |
nicklas |
94 |
data-seqrun-id="<%=seqRunId%>" |
2910 |
10 Nov 14 |
nicklas |
95 |
data-omit-lanes="[<%=omitLanes == null ? "" : omitLanes%>]" |
2641 |
09 Sep 14 |
nicklas |
96 |
></div> |
2641 |
09 Sep 14 |
nicklas |
97 |
|
2641 |
09 Sep 14 |
nicklas |
98 |
<form name="reggie" id="wizard" class="wizard"> |
2641 |
09 Sep 14 |
nicklas |
99 |
<div class="content bottomborder"> |
2641 |
09 Sep 14 |
nicklas |
100 |
<table class="fullform input100"> |
2641 |
09 Sep 14 |
nicklas |
101 |
<tr> |
2641 |
09 Sep 14 |
nicklas |
102 |
<th>Sequencing run</th> |
2642 |
09 Sep 14 |
nicklas |
103 |
<td colspan="2"> |
2642 |
09 Sep 14 |
nicklas |
104 |
<span id="sequencingrun"></span>, <b>Flow cell:</b> <span id="flowCellId"></span> (<span id="flowCellType"></span>) |
2642 |
09 Sep 14 |
nicklas |
105 |
</td> |
2641 |
09 Sep 14 |
nicklas |
106 |
</tr> |
2641 |
09 Sep 14 |
nicklas |
107 |
<tr> |
2641 |
09 Sep 14 |
nicklas |
108 |
<th>Data files folder</th> |
2641 |
09 Sep 14 |
nicklas |
109 |
<td id="dataFilesFolder" colspan="2"></td> |
2641 |
09 Sep 14 |
nicklas |
110 |
</tr> |
2641 |
09 Sep 14 |
nicklas |
111 |
<tr> |
2641 |
09 Sep 14 |
nicklas |
112 |
<th>ReadString</th> |
2641 |
09 Sep 14 |
nicklas |
113 |
<td colspan="2"> |
2642 |
09 Sep 14 |
nicklas |
114 |
<input type="text" name="readString" id="readString" class="text required" |
2642 |
09 Sep 14 |
nicklas |
115 |
value="<%=HTML.encodeTags(readString) %>" |
5478 |
10 Jun 19 |
nicklas |
116 |
style="width: 15em;"> |
2641 |
09 Sep 14 |
nicklas |
117 |
(<span id="sequencingCycles"></span>) |
2641 |
09 Sep 14 |
nicklas |
118 |
</td> |
2641 |
09 Sep 14 |
nicklas |
119 |
</tr> |
2641 |
09 Sep 14 |
nicklas |
120 |
<tr> |
2910 |
10 Nov 14 |
nicklas |
121 |
<th>Cluster node</th> |
2641 |
09 Sep 14 |
nicklas |
122 |
<td colspan="2"> |
2641 |
09 Sep 14 |
nicklas |
123 |
<table> |
2641 |
09 Sep 14 |
nicklas |
124 |
<tr> |
5478 |
10 Jun 19 |
nicklas |
125 |
<td><select name="clusters" id="clusters" class="required" style="min-width: 15em; margin-right: 1em;"></select></td> |
2641 |
09 Sep 14 |
nicklas |
126 |
<td> |
2910 |
10 Nov 14 |
nicklas |
127 |
<base:button id="check" title="Check selected lanes" style="display: none;" image="<%=home+"/images/validate.png"%>" /> |
2641 |
09 Sep 14 |
nicklas |
128 |
</td> |
2641 |
09 Sep 14 |
nicklas |
129 |
</table> |
2641 |
09 Sep 14 |
nicklas |
130 |
</td> |
2641 |
09 Sep 14 |
nicklas |
131 |
</tr> |
7031 |
09 Feb 23 |
nicklas |
132 |
<tr> |
7031 |
09 Feb 23 |
nicklas |
133 |
<th>Timeout</th> |
7031 |
09 Feb 23 |
nicklas |
134 |
<td colspan="2"> |
7031 |
09 Feb 23 |
nicklas |
135 |
<table> |
7031 |
09 Feb 23 |
nicklas |
136 |
<tr> |
7031 |
09 Feb 23 |
nicklas |
137 |
<td><input type="text" name="timeout" id="timeout" class="text" value="60" style="width: 5em;">seconds</td> |
7031 |
09 Feb 23 |
nicklas |
138 |
</table> |
7031 |
09 Feb 23 |
nicklas |
139 |
</td> |
7031 |
09 Feb 23 |
nicklas |
140 |
</tr> |
2641 |
09 Sep 14 |
nicklas |
141 |
|
2641 |
09 Sep 14 |
nicklas |
142 |
<tbody id="lanes-section"></tbody> |
2641 |
09 Sep 14 |
nicklas |
143 |
|
2641 |
09 Sep 14 |
nicklas |
144 |
<tr class="dynamic"> |
2641 |
09 Sep 14 |
nicklas |
145 |
<th></th> |
2641 |
09 Sep 14 |
nicklas |
146 |
<td colspan="2"> |
2641 |
09 Sep 14 |
nicklas |
147 |
<div id="wizard-status"></div> |
2641 |
09 Sep 14 |
nicklas |
148 |
</td> |
2641 |
09 Sep 14 |
nicklas |
149 |
</tr> |
2641 |
09 Sep 14 |
nicklas |
150 |
</table> |
2641 |
09 Sep 14 |
nicklas |
151 |
</div> |
2641 |
09 Sep 14 |
nicklas |
152 |
</form> |
2641 |
09 Sep 14 |
nicklas |
153 |
|
2641 |
09 Sep 14 |
nicklas |
154 |
<base:buttongroup subclass="dialogbuttons" id="dialogbuttons"> |
2641 |
09 Sep 14 |
nicklas |
155 |
<base:button id="close" title="Close" /> |
2641 |
09 Sep 14 |
nicklas |
156 |
</base:buttongroup> |
2641 |
09 Sep 14 |
nicklas |
157 |
|
2641 |
09 Sep 14 |
nicklas |
158 |
</base:body> |
2641 |
09 Sep 14 |
nicklas |
159 |
</base:page> |
2641 |
09 Sep 14 |
nicklas |
160 |
<% |
2641 |
09 Sep 14 |
nicklas |
161 |
} |
2641 |
09 Sep 14 |
nicklas |
162 |
finally |
2641 |
09 Sep 14 |
nicklas |
163 |
{ |
2641 |
09 Sep 14 |
nicklas |
164 |
if (dc != null) dc.close(); |
2641 |
09 Sep 14 |
nicklas |
165 |
} |
2641 |
09 Sep 14 |
nicklas |
166 |
%> |