Changeset 550 for branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo
- Timestamp:
- Jan 23, 2008, 3:21:52 PM (13 years ago)
- Location:
- branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/autogenerate.jsp
r548 r550 67 67 <body> 68 68 69 <h 1>Tab2MAGE Import Wizard -- Additional Information for Autogenerate Mode</h1>69 <h2>Tab2MAGE Import Wizard -- Additional Information for Autogenerate Mode</h2> 70 70 <p> 71 71 <form name="autogenerate" action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/submit.jsp?ID=<%=ID%>"> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/configureImporter.jsp
r548 r550 144 144 <input type="hidden"name="parameter:subjectList" value="<%=inputDataBean.getSubjectList()%>" /> 145 145 <input type="hidden"name="parameter:tissueList" value="<%=inputDataBean.getTissueList()%>" /> 146 <input type="hidden"name="parameter:combinationList" value=""/> 146 147 <input type="hidden"name="parameter:useWizard" value="<%=inputDataBean.getUseWizard()%>" /> 147 148 <input type="hidden"name="parameter:legacyData" value="<%=inputDataBean.getLegacyData()%>" /> … … 153 154 <input type="hidden"name="parameter:proceed" value="<%= inputDataBean.getProceed()%>"/> 154 155 155 <input type="hidden"name="parameter:fileList" value=""/> 156 <input type="hidden"name="parameter:subjectList" value=""/> 157 <input type="hidden"name="parameter:tissueList" value=""/> 158 <input type="hidden"name="parameter:combinationList" value=""/> 159 160 161 162 <h1>Tab2MAGE Import Wizard -- Select Your Data File</h1> 156 157 158 159 160 <h2>Tab2MAGE Import Wizard -- Select Your Data File</h2> 163 161 164 162 <p> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/experiment.jsp
r548 r550 34 34 35 35 <script> 36 self.resizeTo(800, 1100);36 self.resizeTo(800,900); 37 37 </script> 38 38 … … 123 123 124 124 125 <h 1>Tab2MAGE Import Wizard -- Your Experiment</h1>125 <h2>Tab2MAGE Import Wizard -- Your Experiment</h2> 126 126 <p> 127 127 -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/hybridizations.jsp
r548 r550 73 73 frm.recentFile.selectedIndex = 0; 74 74 } 75 76 function hideTwoChannelQuestions() 77 { 78 var dyeSwapRow = document.getElementById('dyeSwapRow'); 79 var refSampleRow = document.getElementById('refSampleRow'); 80 var poolingRow = document.getElementById('poolingRow'); 81 82 //items are currently displayed, so hide them 83 dyeSwapRow.style.display = "none"; 84 refSampleRow.style.display = "none"; 85 poolingRow.style.display = "none"; 86 } 87 88 function showTwoChannelQuestions() 89 { 90 var dyeSwapRow = document.getElementById('dyeSwapRow'); 91 var refSampleRow = document.getElementById('refSampleRow'); 92 var poolingRow = document.getElementById('poolingRow'); 93 94 //items are currently hidden, so display them 95 dyeSwapRow.style.display = "table-row"; 96 refSampleRow.style.display = "table-row"; 97 poolingRow.style.display = "table-row"; 98 } 99 100 function checkRefSampleLogic() 101 { 102 if(document.getElementById("dyeSwapYes").checked && document.getElementById("refSampleYes").checked) 103 { 104 alert('Reference Sample and Dye Swap cannot both be set to "yes"'); 105 } 106 } 75 107 76 108 … … 93 125 <input type="hidden" name="zipFile" value="/home/michab/potato_small.zip" id="zipFile"> 94 126 95 <h 1>Tab2MAGE Import Wizard -- Your Hybridizations</h1>127 <h2>Tab2MAGE Import Wizard -- Your Hybridizations</h2> 96 128 97 129 <p> … … 99 131 <table cellpadding="15"> 100 132 101 <!-- question 1-->133 <!-- platform --> 102 134 <tr > 103 135 <td class="boldText">Microarray platform:</td> 104 136 <td class="input"> 105 137 <select name="platform"> 106 <option >Affymetrix</option>107 <option >Agilent</option>108 <option >AIDA</option>109 <option >BZScan</option>110 <option >ChipSkipper</option>111 <option selected="selected">GenePix</option>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>118 <option ><i>Custom</i></option>138 <option onclick="hideTwoChannelQuestions();" selected="selected" >Affymetrix</option> 139 <option onclick="showTwoChannelQuestions();">Agilent</option> 140 <option onclick="showTwoChannelQuestions();">AIDA</option> 141 <option onclick="showTwoChannelQuestions();">BZScan</option> 142 <option onclick="showTwoChannelQuestions();">ChipSkipper</option> 143 <option onclick="showTwoChannelQuestions();">GenePix</option> 144 <option onclick="showTwoChannelQuestions();">GeneTAC</option> 145 <option onclick="showTwoChannelQuestions();">Illumina</option> 146 <option onclick="showTwoChannelQuestions();">Imagene</option> 147 <option onclick="showTwoChannelQuestions();">QuantArray Biotin</option> 148 <option onclick="showTwoChannelQuestions();">QuantArray Cy</option> 149 <option onclick="showTwoChannelQuestions();">Spotfinder</option> 150 <option onclick="showTwoChannelQuestions();"><i>Custom</i></option> 119 151 </select></td> 120 152 <td>The manufacturer of the microarray chip used.</td> 121 153 </tr> 122 154 123 <!-- question 2-->155 <!-- organism --> 124 156 <tr> 125 157 <td class="boldText">Experimental organism:</td> … … 128 160 </tr> 129 161 130 <!-- question 3-->162 <!-- num array designs --> 131 163 <tr> 132 164 <td class="boldText">Number of different arrays designs used:</td> … … 136 168 </tr> 137 169 138 <!-- question 4 --> 139 <tr> 140 <td class="boldText">Dye-swap</td> 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> 153 </td> 154 <td>If you used a dye-swap design please indicate this here.</td> 155 </tr> 156 157 <!-- question 5 --> 158 <tr> 159 <td class="boldText">Reference sample</td> 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> 173 <td>If you used a reference sample please indicate this here.</td> 174 </tr> 175 176 <!-- question 6 --> 170 171 <!-- num treatment grps --> 177 172 <tr> 178 173 <td class="boldText">Number of treatment groups:</td> … … 183 178 </tr> 184 179 185 <!-- question 7-->180 <!-- exp factors --> 186 181 <tr> 187 182 <td class="boldText">Experimental factors: … … 193 188 <p>Example: <i><br> 194 189 Compound(aspirin,ibuprofen) <br> 195 Dose(control,low,medium,high)</i></td> 196 </tr> 197 198 <!-- question 8 --> 190 Dose(control,low,medium,high) <br> 191 Time(1h,4h,12h,24h)</i> 192 <p> 193 <b>IMPORTANT: If your experimental design includes a time series of any sort, the corresponding factor must be called "Time".</b></td> 194 </tr> 195 196 <!-- num subjects --> 199 197 <tr> 200 198 <td class="boldText">Number of subjects per group:</td> … … 203 201 </tr> 204 202 205 <!-- question 8a-->203 <!-- subject labels --> 206 204 <tr> 207 205 <td class="boldText">Subject (replicate) labels:</td> … … 211 209 </tr> 212 210 213 <!-- question 9-->211 <!-- tissues --> 214 212 <tr> 215 213 <td class="boldText">Target tissues:</td> … … 217 215 <td>List all target tissues one per line, in no particular order (copy and paste from Excel works).</td> 218 216 </tr> 217 218 219 <!-- dye swap --> 220 <tr id="dyeSwapRow" style="display:none"> 221 <td class="boldText">Dye-swap</td> 222 <td class="input"> 223 <table class="noBorder" cellpadding="4"> 224 <tr> 225 <td class="noBorder"><input type="radio" name="dyeSwap" id="dyeSwapYes" value="yes" onchange="checkRefSampleLogic();"/></td> 226 <td class="noBorder">yes</td> 227 </tr> 228 229 <tr> 230 <td class="noBorder"><input type="radio" name="dyeSwap" id="dyeSwapNo" value="no" checked="checked" onchange="checkRefSampleLogic();"/></td> 231 <td class="noBorder">no</td> 232 </tr> 233 </table> 234 </td> 235 <td>If you used a dye-swap design please indicate this here.</td> 236 </tr> 237 238 <!-- ref sample --> 239 <tr id="refSampleRow" style="display:none"> 240 <td class="boldText">Reference sample</td> 241 <td class="input"> 242 <table class="noBorder" cellpadding="4"> 243 <tr> 244 <td class="noBorder"><input type="radio" name="refSample" id="refSampleYes" value="yes" onchange="checkRefSampleLogic();"/></td> 245 <td class="noBorder">yes</td> 246 </tr> 247 248 <tr> 249 <td class="noBorder"><input type="radio"name="refSample" id="refSampleNo" value="no" checked="checked" onchange="checkRefSampleLogic();"/></td> 250 <td class="noBorder">no</td> 251 </tr> 252 </table> 253 </td> 254 <td>If you used a reference sample please indicate this here.</td> 255 </tr> 219 256 220 <!-- question 10-->221 <tr >257 <!-- pooling --> 258 <tr id="poolingRow" style="display:none"> 222 259 <td class="boldText">Sample pooling:</td> 223 260 <td class="input"> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/mappings.jsp
r548 r550 15 15 final String ID = sc.getId(); 16 16 final String requestId = request.getParameter("requestId"); 17 18 17 %> 19 18 … … 73 72 tissueList += frm.elements[i].value + '\t'; 74 73 } 74 if(id.match("dyeInput")) 75 { 76 dyeList += frm.elements[i].value + '\t'; 77 } 75 78 if(id.match("combinationInput")) 76 79 { … … 81 84 frm.subjectList.value = subjectList; 82 85 frm.tissueList.value = tissueList; 86 frm.dyeList.value = dyeList; 83 87 frm.combinationList.value = combinationList; 84 88 } … … 101 105 <input type="hidden" id="subjectList" name="subjectList" value""/> 102 106 <input type="hidden" id="tissueList" name="tissueList" value""/> 107 <input type="hidden" id="dyeList" name="dyeList" value""/> 103 108 <input type="hidden" id="combinationList" name="combinationList" value""/> 104 109 … … 120 125 //extract the possible values from between the parentheses 121 126 String allValues = rawFactors[i].substring(rawFactors[i].indexOf("(") + 1, 122 127 rawFactors[i].indexOf(")")); 123 128 String[] values = allValues.split(","); 124 129 factorValues[i] = values; … … 171 176 { 172 177 singleChannel = true; 173 } 178 } 174 179 int numReplicates = Integer.parseInt(inputDataBean.getNumReplicates()); 175 180 int numTreatmentGroups = Integer.parseInt(inputDataBean.getNumTreatmentGroups()); 176 181 int numTissues = inputDataBean.getTissues().split("\n").length; 177 int numHybs = Tab2MageWriter.calcNumHybs(singleChannel,numReplicates, numTreatmentGroups, numTissues); 182 boolean dyeSwapBool = false; 183 boolean poolingBool = false; 184 if(inputDataBean.getDyeSwap().equals("yes")) 185 { 186 dyeSwapBool = true; 187 } 188 if(inputDataBean.getPooling().equals("yes")) 189 { 190 poolingBool = true; 191 } 192 193 int numHybs = Tab2MageUtils.calcNumHybs(dyeSwapBool,poolingBool,Integer.parseInt(inputDataBean.getNumDesigns()), numReplicates, numTreatmentGroups,numTissues); 194 178 195 System.out.println("numHybs = " + numHybs); 179 196 System.out.println("products.length = " + products.length); 180 197 %> 181 198 182 <h 1>Tab2MAGE Import Wizard -- File Mappings</h1>199 <h2>Tab2MAGE Import Wizard -- File Mappings</h2> 183 200 <p> 184 201 … … 198 215 <td class="header"><h3>Subject</h3></td> 199 216 <td class="header"><h3>Tissue</h3></td> 217 <td class="header"><h3>Dye</h3></td> 200 218 <td class="header"><h3>Factor Value Combination</h3></td> 201 219 … … 205 223 206 224 <% 207 for (int i = 0; i < numHybs; i++)208 {225 for (int i = 0; i < numHybs; i++) 226 { 209 227 %> 210 228 … … 215 233 <td class="input" ><select id="fileInput<%=i %>"> 216 234 <% 217 for (int k = 0; k < fileNamesArr.length; k++)218 {235 for (int k = 0; k < fileNamesArr.length; k++) 236 { 219 237 %> 220 238 … … 230 248 <td class="input" ><select id="subjectInput<%=i %>"> 231 249 <% 232 for (int k = 0; k < subjectNames.length; k++)233 {250 for (int k = 0; k < subjectNames.length; k++) 251 { 234 252 %> 235 253 … … 245 263 <td class="input" ><select id="tissueInput<%=i %>"> 246 264 <% 247 for (int k = 0; k < tissueNames.length; k++)248 {265 for (int k = 0; k < tissueNames.length; k++) 266 { 249 267 %> 250 268 … … 256 274 </select></td> 257 275 258 <!-- need a single cell with a select box that lets the user select from a list of unique factor value combinations --> 276 <!-- select your dye here--> 277 278 <td class="input"><select id="dyeInput<%=i %>"> 279 <% 280 if (!singleChannel) 281 { 282 %> 283 <option>Cy3</option> 284 <option>Cy5</option> 285 <% 286 } 287 else 288 { 289 %> 290 <option>biotin</option> 291 <% 292 } 293 %> 294 295 </select></td> 296 297 <!-- need a single cell with a select box that lets the user select from a list of unique factor value combinations --> 259 298 260 299 <td> 261 300 <select id="combinationInput<%=i %>"> 262 301 <% 263 for (int k = 0; k < products.length; k++) 302 for (int k = 0; k < products.length; k++) 303 { 304 //make a String with all the factor values in this combination 305 //separate values in each combi with a space 306 String combi = ""; 307 for (int j = 0; j < products[k].length; j++) 264 308 { 265 //make a String with all the factor values in this combination 266 //separate values in each combi with a space 267 String combi = ""; 268 for (int j = 0; j < products[k].length; j++) 269 { 270 combi += products[k][j] + " "; 271 } 309 combi += products[k][j] + " "; 310 } 272 311 %> 273 312 -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/protocols.jsp
r547 r550 122 122 <input type="hidden"name="requestId" value="<%=requestId%>"> 123 123 124 <h 1>Tab2MAGE Import Wizard -- Your Protocols</h1>124 <h2>Tab2MAGE Import Wizard -- Your Protocols</h2> 125 125 <p> 126 126 <table cellpadding="10"> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/spreadsheetdata.jsp
r547 r550 35 35 <body> 36 36 37 <h 1>Tab2MAGE Import Wizard -- Enter Spreadsheet Data for Mappings</h1>37 <h2>Tab2MAGE Import Wizard -- Enter Spreadsheet Data for Mappings</h2> 38 38 39 39 <form name="spreadSheetMappingsForm" action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/submit.jsp?ID=<%=ID%>" method="post"> … … 51 51 <li>Columns must be in the order as below and the column headers must be exactly as follows (please replace 'myFactorName1' etc. with your actual factor names):<p> 52 52 <b> 53 File Subject Tissue FactorValue[myFactorName1] FactorValue[myFactorName2] etc....53 File Subject Tissue Dye FactorValue[myFactorName1] FactorValue[myFactorName2] etc.... 54 54 </b></p> 55 55 </ul> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/submit.jsp
r548 r550 31 31 <body> 32 32 33 <h 1>Tab2MAGE Import Wizard -- Summary</h1>33 <h2>Tab2MAGE Import Wizard -- Summary</h2> 34 34 <p> 35 35 … … 145 145 <input type="hidden"name="parameter:subjectList" value="<%=inputDataBean.getSubjectList()%>" /> 146 146 <input type="hidden"name="parameter:tissueList" value="<%=inputDataBean.getTissueList()%>" /> 147 <input type="hidden"name="parameter:dyeList" value="<%=inputDataBean.getDyeList()%>"/> 148 <input type="hidden"name="parameter:combinationList" value=""/> 147 149 <input type="hidden"name="parameter:useWizard" value="<%=inputDataBean.getUseWizard()%>" /> 148 150 <input type="hidden"name="parameter:legacyData" value="<%=inputDataBean.getLegacyData()%>" /> … … 154 156 <input type="hidden"name="parameter:proceed" value="<%= inputDataBean.getProceed()%>"/> 155 157 156 <input type="hidden"name="parameter:fileList" value=""/>157 <input type="hidden"name="parameter:subjectList" value=""/>158 <input type="hidden"name="parameter:tissueList" value=""/>159 <input type="hidden"name="parameter:combinationList" value=""/>160 158 161 159 -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/userchoice1.jsp
r545 r550 50 50 <body> 51 51 52 <h 1>Tab2MAGE Importer -- Choose Import Mode</h1>52 <h2>Tab2MAGE Importer -- Choose Import Mode</h2> 53 53 <p> 54 54 -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/userchoice2.jsp
r548 r550 41 41 if(document.getElementById("legacyDataNo").checked) 42 42 { 43 form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/autogenerate.jsp?ID=<%=ID%>"; 43 var platform = '<%=inputDataBean.getPlatform()%>'; 44 var refSample = '<%=inputDataBean.getRefSample()%>'; 45 //two channel experiment without reference sample -- we need more info first, go to autogenerate.jsp 46 if((platform != 'Affymetrix') && refSample == 'no') 47 { 48 form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/autogenerate.jsp?ID=<%=ID%>"; 49 } 50 //single channel experiments and two channel experiment with reference sample - no extra info needed, proceed straight to submit page 51 else 52 { 53 form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/submit.jsp?ID=<%=ID%>"; 54 } 44 55 } 56 45 57 46 58 //submit the form … … 53 65 <body> 54 66 55 <h 1>Tab2MAGE Import Wizard -- Choose Data Mode</h1>67 <h2>Tab2MAGE Import Wizard -- Choose Data Mode</h2> 56 68 <p> 57 69 -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/userchoice3.jsp
r543 r550 49 49 <body> 50 50 51 <h 1>Tab2MAGE Import Wizard -- Choose Mappings Mode</h1>51 <h2>Tab2MAGE Import Wizard -- Choose Mappings Mode</h2> 52 52 <p> 53 53
Note: See TracChangeset
for help on using the changeset viewer.