Changeset 1794


Ignore:
Timestamp:
Dec 18, 2012, 10:22:39 AM (8 years ago)
Author:
Nicklas Nordborg
Message:

References #425: Generate a lab protocol for RNA -> cDNA processing

Added an optional field to enter the current Stratagene concentration. If it is used, the wizard will automatically calculate volumes to use as for the regular RNA items. If not used, the wizard will add a remark about how much RNA to use (eg 1.1 or 1.22 depending on QC).

Location:
extensions/net.sf.basedb.reggie/branches/ticket-422/resources/libprep
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/branches/ticket-422/resources/libprep/mrna_protocol.jsp

    r1792 r1794  
    180180      </tr>
    181181      <tr valign="top">
     182        <td class="prompt">Stratagene conc.</td>
     183        <td class="input">
     184          <input type="text" name="stratageneConc"
     185            style="width: 10em;" maxlength="8"
     186            onkeypress="return Numbers.numberOnly(event)"
     187          > (ng/µl)
     188        </td>
     189        <td class="status" id="stratagene.status"></td>
     190        <td class="help"><span id="stratagene.message" class="message" style="display: none;"></span>
     191          If the current Stratagene concentration is given, the wizard will calculate volumes
     192          to use automatically.
     193        </td>
     194      </tr>
     195      <tr valign="top">
    182196        <td class="prompt">Lab protocols</td>
    183197        <td class="input" id="protocol" style="white-space: nowrap; line-height: 1.5em;">
  • extensions/net.sf.basedb.reggie/branches/ticket-422/resources/libprep/mrna_protocol2.jsp

    r1793 r1794  
    3737  final User user = User.getById(dc, sc.getLoggedInUserId());
    3838  int mRnaPlateId = Values.getInt(request.getParameter("bioplate"));
     39  final Float stratageneConc = Values.getFloat(request.getParameter("stratageneConc"), null);
    3940 
    4041  BioPlate plate = BioPlate.getById(dc, mRnaPlateId);
     
    133134    rna.qc = rna.usedQuantity > 1.2;
    134135   
     136    <%
     137    if (stratageneConc != null && stratageneConc > 0)
     138    {
     139      %>
     140      if (rna.stratagene) rna.NDConc = <%=stratageneConc%>;
     141      <%
     142    }
     143    %>
     144   
    135145    // Calculate volume to use and water to add based on concentration
    136146    if (rna.NDConc && rna.usedQuantity)
     
    160170      {
    161171        remarks[remarks.length] = 'No NDConc value';
     172      }
     173    }
     174    else
     175    {
     176      if (!rna.NDConc && rna.usedQuantity)
     177      {
     178        remarks[remarks.length] = 'Use ' + Numbers.formatNumber(rna.usedQuantity, 2) + ' µg RNA';
    162179      }
    163180    }
Note: See TracChangeset for help on using the changeset viewer.