Ignore:
Timestamp:
Jan 23, 2008, 3:21:52 PM (13 years ago)
Author:
mbayer
Message:

have restructured the code completely that writes the hybs section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/hybridizations.jsp

    r548 r550  
    7373      frm.recentFile.selectedIndex = 0;
    7474    }
     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    }
    75107
    76108   
     
    93125<input type="hidden" name="zipFile" value="/home/michab/potato_small.zip"  id="zipFile">
    94126
    95 <h1>Tab2MAGE Import Wizard -- Your Hybridizations</h1>
     127<h2>Tab2MAGE Import Wizard -- Your Hybridizations</h2>
    96128
    97129<p>
     
    99131<table cellpadding="15">
    100132
    101   <!-- question 1 -->
     133  <!-- platform -->
    102134  <tr >
    103135    <td class="boldText">Microarray platform:</td>
    104136    <td class="input">
    105137    <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>
    119151    </select></td>
    120152    <td>The manufacturer of the microarray chip used.</td>
    121153  </tr>
    122154
    123   <!-- question 2 -->
     155  <!-- organism -->
    124156  <tr>
    125157    <td class="boldText">Experimental organism:</td>
     
    128160  </tr>
    129161
    130   <!-- question 3 -->
     162  <!-- num array designs -->
    131163  <tr>
    132164    <td class="boldText">Number of different arrays designs used:</td>
     
    136168  </tr>
    137169
    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 -->
    177172  <tr>
    178173    <td class="boldText">Number of treatment groups:</td>
     
    183178  </tr>
    184179
    185   <!-- question 7 -->
     180  <!-- exp factors -->
    186181  <tr>
    187182    <td class="boldText">Experimental factors:
     
    193188    <p>Example: <i><br>
    194189    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 -->
    199197  <tr>
    200198    <td class="boldText">Number of subjects per group:</td>
     
    203201  </tr>
    204202 
    205   <!-- question 8a -->
     203  <!-- subject labels -->
    206204  <tr>
    207205    <td class="boldText">Subject (replicate) labels:</td>
     
    211209  </tr>
    212210 
    213   <!-- question 9 -->
     211  <!-- tissues -->
    214212  <tr>
    215213    <td class="boldText">Target tissues:</td>
     
    217215    <td>List all target tissues one per line, in no particular order (copy and paste from Excel works).</td>
    218216  </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>
    219256 
    220   <!-- question 10 -->
    221   <tr>
     257  <!-- pooling -->
     258  <tr id="poolingRow"  style="display:none">
    222259    <td class="boldText">Sample pooling:</td>
    223260    <td class="input">
Note: See TracChangeset for help on using the changeset viewer.