Changeset 5166


Ignore:
Timestamp:
Dec 3, 2018, 12:00:59 PM (5 months ago)
Author:
Nicklas Nordborg
Message:

References #1081: The release exporter should export more data

The lysate exporter is now exporting protocol, original and remaining volume (µl). The remaining volume is project-specific.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/plugins/release/LysateWriter.java

    r5099 r5166  
    1515import net.sf.basedb.core.Sample;
    1616import net.sf.basedb.core.Type;
     17import net.sf.basedb.core.Unit;
    1718import net.sf.basedb.reggie.Reggie;
    1819import net.sf.basedb.reggie.converter.BooleanToEnumConverter;
     
    7374      jsonAnnotations.add(item.createBatchIndexAnnotationJSON("LysBatchNo", lysDate));
    7475      jsonAnnotations.add(item.createAnnotationJSON("LysUsedFromParent", toMilliG.convert(usedFromParent)));
     76      jsonAnnotations.add(item.createAnnotationJSON("LysOriginalVolume", lysate.getOriginalQuantity()));
     77      jsonAnnotations.add(item.createAnnotationJSON("LysRemainingVolume", lysate.getRemainingQuantity()));
    7578      jsonAnnotations.add(item.createAnnotationJSON("LysMultPieces", multPiecesConverter.convert(multPieces)));
     79      jsonAnnotations.add(item.createAnnotationJSON("LysProtocol", getName(creationEvent.getProtocol())));
    7680     
    7781      json.add(jsonLys);
     
    8993    lysateFactory.createAnnotationType("PartitionBatchNo", Type.INT).setProjectSpecificValues(true);
    9094
     95    Unit mg = UnitUtil.getUnit(dc, Quantity.MASS, "mg");
     96    Unit µl = UnitUtil.getUnit(dc, Quantity.VOLUME, "µl");
     97   
    9198    // Lysate annotation
    9299    lysateFactory.setNamePrefix("Lys");
    93100    lysateFactory.createAnnotationType("BatchNo", Type.INT).setProjectSpecificValues(true);
    94     lysateFactory.createAnnotationType("UsedFromParent", Type.FLOAT).setUnit(UnitUtil.getUnit(dc, Quantity.MASS, "mg"));
     101    lysateFactory.createAnnotationType("UsedFromParent", Type.FLOAT).setUnit(mg);
     102    lysateFactory.createAnnotationType("OriginalVolume", Type.FLOAT).setUnit(µl);
     103    lysateFactory.createAnnotationType("RemainingVolume", Type.FLOAT).setUnit(µl).setProjectSpecificValues(true);
    95104    lysateFactory.createAnnotationType("MultPieces", Type.STRING).setEnumeration(multPiecesConverter.getEnum());
     105    lysateFactory.createAnnotationType("Protocol", Type.STRING);
    96106   
    97107    return lysateFactory.allCreated();
Note: See TracChangeset for help on using the changeset viewer.