Changeset 2235


Ignore:
Timestamp:
Feb 19, 2014, 3:39:52 PM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #546: Confirm sequencing as completed

Adding an option to let the user decide if a pool should be flagged or not.

Location:
extensions/net.sf.basedb.reggie/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/analysis/sequencing_confirm.jsp

    r2229 r2235  
    130130 
    131131  Forms.checkRadio(frm.outcome, seqRun.SequencingResult || 'Successful');
     132  outcomeOnChange();
    132133 
    133134  var html = '';
     
    139140}
    140141
     142function outcomeOnChange()
     143{
     144  var frm = document.forms['reggie'];
     145
     146  frm.flagPools.disabled = !document.getElementById('outcomeFailed').checked;
     147}
    141148
    142149function formatDate(value)
     
    220227  var outcome = Forms.getCheckedRadio(frm, 'outcome').value;
    221228  var submitInfo = {};
     229 
     230  submitInfo.flagPools = !frm.flagPools.disabled && frm.flagPools.checked ? true : false;
    222231
    223232  seqRun.comments = frm.sequencingComments.value;
     
    383392        <td class="input" colspan="2">
    384393          <label><input type="radio" name="outcome" id="outcomeSuccess" value="Successful"
     394            onclick="outcomeOnChange()"
    385395            checked>Success</label> - continue with demux<br>
    386396          <label><input type="radio" name="outcome" id="outcomeFirstBaseReportFailed" value="FirstBaseReportFailed"
     397            onclick="outcomeOnChange()"
    387398            >FirstBaseReportFailed</label> - re-start sequencing<br>
    388399          <label><input type="radio" name="outcome" id="outcomeFailed" value="Failed"
    389             >Failure</label> - flag pools for re-clustering
     400            onclick="outcomeOnChange()"
     401            >Failure</label><br>
     402          <img src="../images/joinbottom.gif"><label><input type="checkbox" name="flagPools" value="1" disabled checked>Flag pools for re-clustering</label>
     403         
    390404        </td>
    391405        <td class="help">
     
    394408          is made from this run.<br>
    395409          Select the <b>Failure</b> option if further analysis of the data is not possible.
    396           No child bioassay set will be created and existing pooled libraries will
     410          No child bioassay set will be created. Existing pooled libraries can optionally
    397411          be flagged for re-clustering on a new flow cell.
    398412        </td>
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/SequencingRunServlet.java

    r2228 r2235  
    319319        JSONObject jsonSeq = (JSONObject)jsonReq.get("sequencingRun");
    320320        JSONObject jsonFlowCell = (JSONObject)jsonSeq.get("flowCell");
     321        boolean flagPools = Boolean.TRUE.equals(jsonReq.get("flagPools"));
    321322       
    322323        Number seqId = (Number)jsonSeq.get("id");
     
    329330        PhysicalBioAssay flowCell = PhysicalBioAssay.getById(dc, fcId.intValue());
    330331
    331         if (SequencingRun.SEQUENCING_FAILED.equals(outcome))
     332        if (SequencingRun.SEQUENCING_FAILED.equals(outcome) && flagPools)
    332333        {
    333334          BioMaterialList flaggedPools = null;
Note: See TracChangeset for help on using the changeset viewer.