Changeset 3517


Ignore:
Timestamp:
Oct 1, 2015, 1:57:26 PM (7 years ago)
Author:
olle
Message:

Refs #815. Bug fix: The wizard "DNA/RNA registration/quantification" only updates lot numbers for DNA and RNA extracts that were extracted from a MeLuDI specimen, but not extract source items, since they were not extracted in the MeLuDI lab. However, while this is correct for extraction and QIAcube reagents, lot number for quality control reagents should be stored for all extracts in the start item list, since the quality control procedure is performed at the MeLuDI lab:

  1. Java servlet class/file ExtractionServlet.java in src/net/sf/basedb/meludi/servlet/ updated in protected method void doPost(HttpServletRequest req, HttpServletResponse resp) for command "RegisterDnaRna" to update lot numbers for quality control reagents for all extracts related to the start item list, including extract source items. Also removal of some code, that were commented out, and fix of code for special cases, that will normally never occur.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.meludi/trunk/src/net/sf/basedb/meludi/servlet/ExtractionServlet.java

    r3516 r3517  
    23292329            if (Meludi.itemIsSpecimen(itemName))
    23302330            {
    2331 /*
    2332               dna = Extract.getNew(dc);
    2333               dna.setName((String)jsonDna.get("name"));
    2334 */
    23352331              Dna d = Dna.findByName(dc, itemName + ".d");
    23362332              dna = d.getExtract();
     
    23412337              if (dna == null)
    23422338              {
    2343                 Dna d = Dna.findByName(dc, itemName + ".d");
     2339                Dna d = Dna.findByName(dc, itemName);
    23442340                dna = d.getExtract();
    23452341              }
     
    24042400              Annotationtype.RNEASY_MIN_ELUTE_SPIN_COL.setAnnotationValue(dc, dna, rneasyMinEluteSpinColumn);         
    24052401              Annotationtype.QIAAMP_MIN_ELUTE_SPIN_COL.setAnnotationValue(dc, dna, qiaampMinEluteSpinColumn);
    2406              
    2407               // Quality control reagents
    2408               Annotationtype.KAPA_SYBR_FAST.setAnnotationValue(dc, dna, kapaSybrFast);         
    2409               Annotationtype.QUALITY_CONTROL_PRIMERS_QCP_RGT.setAnnotationValue(dc, dna, qualityControlPrimersQcpRgt);         
    2410               Annotationtype.QUALITY_CONTROL_TEMPLATE_QCT.setAnnotationValue(dc, dna, qualityControlTemplateQct);         
    2411               Annotationtype.QUBIT_DNA_HIGH_SENS.setAnnotationValue(dc, dna, qubitDnaHighSens);         
    2412               Annotationtype.QUBIT_DNA_BROAD_RANGE.setAnnotationValue(dc, dna, qubitDnaBroadRange);         
    2413             }
    2414 /*
    2415             if (itemIsSpecimen(itemName))
    2416             {
    2417               dc.saveItem(dna);
    2418               newDna.add(dna);
    2419             }
    2420 */
     2402            }
     2403            // Quality control reagents
     2404            Annotationtype.KAPA_SYBR_FAST.setAnnotationValue(dc, dna, kapaSybrFast);         
     2405            Annotationtype.QUALITY_CONTROL_PRIMERS_QCP_RGT.setAnnotationValue(dc, dna, qualityControlPrimersQcpRgt);         
     2406            Annotationtype.QUALITY_CONTROL_TEMPLATE_QCT.setAnnotationValue(dc, dna, qualityControlTemplateQct);         
     2407            Annotationtype.QUBIT_DNA_HIGH_SENS.setAnnotationValue(dc, dna, qubitDnaHighSens);         
     2408            Annotationtype.QUBIT_DNA_BROAD_RANGE.setAnnotationValue(dc, dna, qubitDnaBroadRange);         
    24212409          }
    24222410         
     
    24282416            if (Meludi.itemIsSpecimen(itemName))
    24292417            {
    2430 /*
    2431               rna = Extract.getNew(dc);
    2432               rna.setName((String)jsonRna.get("name"));
    2433 */
    24342418              Rna r = Rna.findByName(dc, itemName + ".r");
    24352419              rna = r.getExtract();
     
    25152499              Annotationtype.RNEASY_MIN_ELUTE_SPIN_COL.setAnnotationValue(dc, rna, rneasyMinEluteSpinColumn);         
    25162500              Annotationtype.QIAAMP_MIN_ELUTE_SPIN_COL.setAnnotationValue(dc, rna, qiaampMinEluteSpinColumn);
    2517              
    2518               // Quality control reagents
    2519               Annotationtype.KAPA_SYBR_FAST.setAnnotationValue(dc, rna, kapaSybrFast);         
    2520               Annotationtype.QUALITY_CONTROL_PRIMERS_QCP_RGT.setAnnotationValue(dc, rna, qualityControlPrimersQcpRgt);         
    2521               Annotationtype.QUALITY_CONTROL_TEMPLATE_QCT.setAnnotationValue(dc, rna, qualityControlTemplateQct);         
    2522               Annotationtype.QUBIT_DNA_HIGH_SENS.setAnnotationValue(dc, rna, qubitDnaHighSens);         
    2523               Annotationtype.QUBIT_DNA_BROAD_RANGE.setAnnotationValue(dc, rna, qubitDnaBroadRange);         
    2524             }
    2525 /*
    2526             if (itemIsSpecimen(itemName))
    2527             {
    2528               dc.saveItem(rna);
    2529               newRna.add(rna);
    2530             }
    2531 */
     2501            }
     2502            // Quality control reagents
     2503            Annotationtype.KAPA_SYBR_FAST.setAnnotationValue(dc, rna, kapaSybrFast);         
     2504            Annotationtype.QUALITY_CONTROL_PRIMERS_QCP_RGT.setAnnotationValue(dc, rna, qualityControlPrimersQcpRgt);         
     2505            Annotationtype.QUALITY_CONTROL_TEMPLATE_QCT.setAnnotationValue(dc, rna, qualityControlTemplateQct);         
     2506            Annotationtype.QUBIT_DNA_HIGH_SENS.setAnnotationValue(dc, rna, qubitDnaHighSens);         
     2507            Annotationtype.QUBIT_DNA_BROAD_RANGE.setAnnotationValue(dc, rna, qubitDnaBroadRange);         
    25322508          }
    25332509         
     
    25352511          if (Meludi.itemIsSpecimen(itemName))
    25362512          {
    2537 /*
    2538             msg += "RNA and DNA created from " + itemName;
    2539 */
    25402513            msg += "RNA and DNA updated for " + itemName;
    25412514          }
Note: See TracChangeset for help on using the changeset viewer.