source: branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/hybridizations.jsp @ 544

Last change on this file since 544 was 544, checked in by mbayer, 13 years ago

submission with existing tab2mage file implemented

File size: 9.5 KB
RevLine 
[497]1<%@ page import="net.sf.basedb.core.*"%>
2<%@ page import="net.sf.basedb.clients.web.*"%>
3<%@ page import="net.sf.basedb.util.*"%>
4<%@ page import="java.util.*"%>
5
[532]6<jsp:useBean id="inputDataBean" class="uk.ac.ebi.nugo.plugins.DataBean" scope="session" />
[497]7<!-- submits the form data back to the bean assuming that each form element is matched to a variable in the bean by the same name -->
[511]8<jsp:setProperty name="inputDataBean" property="*" />
[497]9
[513]10<%
11final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
12final String ID = sc.getId();
[530]13final String requestId = request.getParameter("requestId");
[513]14 %>
[497]15
[513]16
[497]17<html>
[513]18
[497]19<head>
[513]20
[511]21<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/styles.css" />
[524]22<link rel="stylesheet" type="text/css" href="/base/include/styles/main.css">
23<link rel="stylesheet" type="text/css" href="/base/include/styles/size_m.css">
[513]24
25<script language="JavaScript" src="<%= request.getContextPath()%>/include/scripts/main.js" type="text/javascript"></script>
26
27<script language="JavaScript" type="text/javascript">
[522]28  //submits form
29  function submit()
30  {
31    document.hybridizations.submit();
32  }
[513]33    function getRoot()
34    {
35      return '/base/';
36    }
37    function getScale()
38    {
39      return 1.0;
40    }
41    function doImport()
42    {
43      var frm = document.forms['hybridizations'];
44      if (Main.trimString(frm.path.value) == '')
45      {
46        alert("You must select a file to import from");
47        frm.path.focus();
48      }
49      else
50      {
51        frm.submit();
52      }
53    }
54    function browseOnClick()
55    {
56      var frm = document.forms['hybridizations'];
57      var url = '<%= request.getContextPath()%>/filemanager/index.jsp?ID=<%=ID%>&cmd=SelectOne&title=Select+file+to+import&callback=setFileCallback';
58      url += '&filter:INT:location=1';
59      Main.openPopup(url, 'SelectFile', 1000, 700);
60    }
61    function setFileCallback(fileId, path)
62    {
63      var frm = document.forms['hybridizations'];
64      frm.file_id.value = fileId;
65      frm.path.value = path;
66      document.getElementById('zipFile').value = path;
67      }
68    function recentFileOnChange()
69    {
70      var frm = document.forms['hybridizations'];
71      var selected = frm.recentFile[frm.recentFile.selectedIndex];
72      setFileCallback(selected.value, selected.text);
73      frm.recentFile.selectedIndex = 0;
74    }
75
76   
77    </script>
78
[497]79</head>
[513]80
[497]81<body>
82
[511]83
[497]84
[513]85
[524]86
[543]87<form name="hybridizations"action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/userchoice2.jsp?ID=<%=ID%>" method="post">
[532]88<input type="hidden" name="ID" value="<%=ID%>"> 
89<input type="hidden" name="cmd" value="SetParameters"> 
[530]90<input type="hidden"name="requestId" value="<%=requestId%>"> 
[497]91
[513]92<input type="hidden" name="file_id" value="">
[544]93<input type="hidden" name="zipFile" value="/home/michab/potato_small.zip"  id="zipFile">
[512]94
[532]95<h1>Tab2MAGE Import Wizard -- Your Hybridizations</h1>
96
[524]97<p>
[512]98<!--  table with the input form -->
[511]99<table cellpadding="15">
[497]100
101  <!-- question 1 -->
[524]102  <tr >
[522]103    <td class="boldText">Microarray platform:</td>
[528]104    <td class="input">
105    <select name="platform">
[511]106    <option >Affymetrix</option>
[513]107    <option >Agilent</option>
108    <option >AIDA</option>
109    <option >BZScan</option>
110    <option >ChipSkipper</option>
[544]111    <option selected="selected">GenePix</option>
[513]112    <option >GeneTAC</option>
113    <option >Illumina</option>
114    <option >Imagene</option>
115    <option >QuantArray Biotin</option>
116    <option >QuantArray Cy</option>
117    <option >Spotfinder</option>
[522]118    <option ><i>Custom</i></option>
[497]119    </select></td>
[522]120    <td>The manufacturer of the microarray chip used.</td>
[497]121  </tr>
[511]122
123  <!-- question 2 -->
124  <tr>
[522]125    <td class="boldText">Experimental organism:</td>
[544]126    <td class="input"><input type="text" size="50" name="organism" value="Hordeum vulgare"/></td>
[522]127    <td>The full scientific name of the experimental organism used.</td>
[511]128  </tr>
129
130  <!-- question 3 -->
131  <tr>
132    <td class="boldText">Number of different arrays designs used:</td>
[526]133    <td class="input"><input type="text" size="3" name="numDesigns" value="1"/></td>
[522]134    <td>If more than one array design was used in parallel, please specify the number here.
135    We assume that all samples are applied once to each array design</td>
[511]136  </tr>
137
138  <!-- question 4 -->
139  <tr>
[522]140    <td class="boldText">Dye-swap</td>
[544]141    <td class="input">
142    <table class="noBorder" cellpadding="4">
143      <tr>
144        <td class="noBorder"><input type="radio" name="dyeSwap" value="yes"></td>
145        <td class="noBorder">yes</td>
146      </tr>
147
148      <tr>
149        <td class="noBorder"><input type="radio" name="dyeSwap" value="no" checked="checked"></td>
150        <td class="noBorder">no</td>
151      </tr>
152    </table>     
[511]153    </td>
[522]154    <td>If you used a dye-swap design please indicate this here.</td>
[511]155  </tr>
156
157  <!-- question 5 -->
158  <tr>
[522]159    <td class="boldText">Reference sample</td>
[544]160    <td class="input"> 
161    <table class="noBorder" cellpadding="4">
162      <tr>
163        <td class="noBorder"><input type="radio" name="refSample" value="yes"></td>
164        <td class="noBorder">yes</td>
165      </tr>
166
167      <tr>
168        <td class="noBorder"><input type="radio"name="refSample" value="no"  checked="checked"></td>
169        <td class="noBorder">no</td>
170      </tr>
171    </table>       
172    </td>
[522]173    <td>If you used a reference sample please indicate this here.</td>
[511]174  </tr>
175
176  <!-- question 6 -->
177  <tr>
[517]178    <td class="boldText">Number of treatment groups:</td>
[526]179    <td class="input"><input type="text" size="3" name="numTreatmentGroups" value="2"/></td>
[522]180    <td>The number of permutations of factor values. <p>
181    Example: an experiment with 2 factors and 3 factor values in each will have 6 treatment groups (2 X 3).
182    </td>
[511]183  </tr>
184
185  <!-- question 7 -->
186  <tr>
[522]187    <td class="boldText">Experimental factors:
188    </td>
[527]189    <td class="input"><textarea rows="7" cols="32" name="expFactors">Strain(mutant,wildtype)</textarea></td>
[522]190    <td>Please list all experimental factors and value ranges using the following format (one per
[511]191    line):<br>
[518]192    <i>Factor 1(value1,value2,...valueN)<br></i>
[511]193    <p>Example: <i><br>
[523]194    Compound(aspirin,ibuprofen) <br>
[522]195    Dose(control,low,medium,high)</i></td>
[511]196  </tr>
197
198  <!-- question 8 -->
199  <tr>
[522]200    <td class="boldText">Number of subjects per group:</td>
[526]201    <td class="input"><input type="text" size="3" name="numReplicates" value="2"/></td>
[522]202    <td>This is the number of biological replicates in each treatment group.</td>
[511]203  </tr>
[497]204 
[531]205  <!-- question 8a -->
206  <tr>
207    <td class="boldText">Subject (replicate) labels:</td>
[544]208    <td class="input"><textarea rows="8" cols="32" name="subjectNames"></textarea></td>
[531]209    <td>Please provide a list of labels(names) for the experimental subjects, one per line,
210     in no particular order (copy and paste from Excel works).</td>
211  </tr> 
212 
[511]213  <!-- question 9 -->
214  <tr>
[522]215    <td class="boldText">Target tissues:</td>
[531]216    <td class="input"><textarea rows="4" cols="32" name="tissues">stem</textarea></td>
217    <td>List all target tissues one per line, in no particular order (copy and paste from Excel works).</td>
[511]218  </tr>
219 
220  <!-- question 10 -->
221  <tr>
[522]222    <td class="boldText">Sample pooling:</td>
[544]223    <td class="input">
224    <table class="noBorder" cellpadding="4">
225      <tr>
226        <td class="noBorder"><input type="radio" name="pooling" value="yes"></td>
227        <td class="noBorder">yes</td>
228      </tr>
229      <tr>
230        <td class="noBorder"><input type="radio" name="pooling" value="no" checked="checked"></td>
231        <td class="noBorder">no</td>
232      </tr>
233    </table>   
234    </td>
[522]235    <td>If the samples were pooled please indicate this here.</td>
[511]236  </tr>
[497]237
[511]238
239  <!-- file upload -->
[522]240  <tr>
241    <td class="boldText">Zip file:</td>
[513]242
[522]243    <td class="input">
244    <table class="noBorder" border="0" cellspacing="0" cellpadding="5">
245      <tr class="noBorder" >
246     
[524]247        <td style="vertical-align: middle;border-style: none;"><input type="text" name="path" size="35" value=""></td>
[521]248       
[524]249        <td  style="vertical-align: middle;border-style: none;">
[522]250        <div class="buttons"
251          onmouseover="this.className='buttons_hover';"
252          onmouseout="this.className='buttons';"
253          onclick="browseOnClick()">
254        <div class="buttons_inner">
255
256        <table class="noBorder" cellspacing="0" cellpadding="0">
257          <tr class="noBorder">
[524]258            <td style="border-style: none;">&nbsp;&nbsp;<img src="/base/images/browse.png" border="0"></td>
259            <td style="border-style: none;">Browse&hellip;</td>
[513]260          </tr>
261        </table>
[521]262
[513]263        </div>
[518]264        </div>
[513]265        </td>
[522]266       
[513]267      </tr>
268    </table>
[522]269    </td>
270
271    <td>Please select the zip file on your local disk that contains the data files for import.
272   All files must be of the same data format (e.g. Genepix or Affymetrix etc.).</td>
[511]273  </tr>
274
275</table>
276
277<p>
[522]278
[523]279  <table align="center" class="noBorder" cellspacing="5"  cellpadding="5">
[511]280  <tr class="noBorder">
[526]281    <td id="next" width="50%" style="border-style: none;"><div class="buttons" onmouseover="this.className='buttons_hover';" onmouseout="this.className='buttons';" onclick="submit()"><div class="buttons_inner"><table  class="noBorder" cellspacing="0" cellpadding="0"><tr  class="noBorder"><td style="border-style: none;"><img src="/base/images/gonext.gif" border="0"></td><td style="border-style: none;">Next</td></tr></table></div></div></td>
[524]282    <td id="close" width="50%" style="border-style: none;"><div class="buttons" onmouseover="this.className='buttons_hover';" onmouseout="this.className='buttons';" onclick="window.close()"><div class="buttons_inner"><table  class="noBorder" cellspacing="0" cellpadding="0"><tr  class="noBorder"><td style="border-style: none;"><img src="/base/images/cancel.gif" border="0"></td><td style="border-style: none;">Cancel</td></tr></table></div></div></td>  </tr>
[521]283  </table>
[511]284
[521]285
[497]286</form>
287
288</body>
[511]289</html>
Note: See TracBrowser for help on using the repository browser.