Changeset 1948


Ignore:
Timestamp:
Apr 22, 2013, 1:17:39 PM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #429: Generate lab protocol for pooling and flow cell preparation

Rearranged column order in list view so that work plate location is next to the volumes column.

Only show one of the 5µl and 10µl volumes. If the amount of extract is less than 1µl the 10µl values are used otherwise the 5µl values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/libprep/pool_protocol2.jsp

    r1929 r1948  
    6161  var debug = false;
    6262  var currentStep = 1;
     63  var LIMIT_FOR_5_ML = 2.0;
    6364 
    6465  function init()
     
    139140        remarks[remarks.length] = 'SpeedVac';
    140141        if (lib.molarity < 2) remarks[remarks.length] = 'Use 5 µl';
     142      }
     143      if (lib.volume < LIMIT_FOR_5_ML)
     144      {
     145        lib.volume *= 2;
     146        lib.eb *= 2;
     147        remarks[remarks.length] = 'Mix 10µl';
    141148      }
    142149    }
     
    178185        setInnerHTML('molarity.'+idSuffix, Numbers.formatNumber(lib.molarity, 2));
    179186       
    180         setInnerHTML('volume.mol5.'+idSuffix, Numbers.formatNumber(lib.volume, 2));
    181         setInnerHTML('eb.mol5.'+idSuffix, Numbers.formatNumber(lib.eb, 2));
    182         setInnerHTML('volume.mol10.'+idSuffix, Numbers.formatNumber(lib.volume*2, 2));
    183         setInnerHTML('eb.mol10.'+idSuffix, Numbers.formatNumber(lib.eb*2, 2));
     187        setInnerHTML('volume.'+idSuffix, Numbers.formatNumber(lib.volume, 2));
     188        setInnerHTML('eb.'+idSuffix, Numbers.formatNumber(lib.eb, 2));
    184189       
    185190        var indexSet = barcodeVariant.indexSets[well.column];
     
    238243        var i = name.indexOf('.m');
    239244        text += '<div class="lib">'+name.substring(0, i)+'.<br>&nbsp;'+name.substring(i)+'</div>';
    240        
    241245        text += '<div><span class="volume">'+Numbers.formatNumber(lib.volume, 1)+'µl</span>';
    242246        text += '<span class="eb">'+Numbers.formatNumber(lib.eb, 1)+'µl</span></div>';
    243         text += '<div><span class="volume">'+Numbers.formatNumber(lib.volume*2, 1)+'µl</span>';
    244         text += '<span class="eb">'+Numbers.formatNumber(lib.eb*2, 1)+'µl</span></div>';
    245247        text += '<div class="remarks">'+ lib.remarks.join('; ') + '</div>';
    246248      }
     
    348350  }
    349351
    350   #listview .mol5, #listview .mol10
     352  #listview .mix
    351353  {
    352354    width: 8em;
     
    355357  }
    356358 
    357   #listview .empty .mol5, #listview .empty .mol10
     359  #listview .empty .mix
    358360  {
    359361    visibility: hidden;
     
    470472        <th></th>
    471473        <th class="lib"></th>
    472         <th class="workplate">Work</th>
    473474        <th>Remain</th>
    474475        <th>DNA</th>
    475         <th>2nM, 5µl</th>
    476         <th>2nM, 10µl</th>
     476        <th class="workplate">Work</th>
     477        <th>2nM, 5/10µl</th>
    477478        <th></th>
    478479      </tr>
     
    481482        <th>Pool</th>
    482483        <th class="lib">Library</th>
    483         <th class="workplate">plate</th>
    484484        <th>(ng)</th>
    485485        <th>(nM)</th>
    486         <th>(µl)</th>
     486        <th class="workplate">plate</th>
    487487        <th>(µl)</th>
    488488        <th>Remarks</th>
     
    513513          <td class="pool" id="pool.<%=idSuffix%>"></td>
    514514          <td class="lib" id="lib.<%=idSuffix%>">empty</td>
    515           <td class="workplate"><%=rowF.format(r)+colF.format(c)%></td>
    516515          <td class="remain" id="remain.<%=idSuffix%>"></td>
    517516          <td class="molarity" id="molarity.<%=idSuffix%>"></td>
    518           <td class="mol5"><span class="volume" id="volume.mol5.<%=idSuffix%>"></span>+<span class="eb" id="eb.mol5.<%=idSuffix%>"></span></td>
    519           <td class="mol10"><span class="volume" id="volume.mol10.<%=idSuffix%>"></span>+<span class="eb" id="eb.mol10.<%=idSuffix%>"></span></td>
     517          <td class="workplate"><%=rowF.format(r)+colF.format(c)%></td>
     518          <td class="mix"><span class="volume" id="volume.<%=idSuffix%>"></span>+<span class="eb" id="eb.<%=idSuffix%>"></span></td>
    520519          <td class="remarks" id="remarks.<%=idSuffix%>"></td>
    521520        </tr>
Note: See TracChangeset for help on using the changeset viewer.