Examples of Plate


Examples of ome.xml.model.Plate

    if (descriptions.length == 0) return imageFile;
   
    OME ome = new OME();
    List<Plate> plates = new ArrayList<Plate>();
    for (MockImageDescription d:descriptions) {
      Plate plate = null;
      for (Plate qPlate:plates) {
        if (qPlate.getName().equals(d.plate)) {
          plate = qPlate;
          break;
        }
      }
      if (plate == null) {
        plate = new Plate();
        plate.setName(d.plate);
        ome.addPlate(plate);
      }
      Well well = null;
      int row = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(d.well.substring(0, 1).toUpperCase());
      int col = Integer.valueOf(d.well.substring(1));
      for (int i=0; i<plate.sizeOfWellList(); i++) {
        final Well qWell = plate.getWell(i);
        if ((qWell.getRow().equals(row)) && (qWell.getColumn().equals(col))) {
          well = qWell;
          break;
        }
      }
      if (well == null) {
        well = new Well();
        well.setRow(new NonNegativeInteger(row));
        well.setColumn(new NonNegativeInteger(col));
        well.setExternalDescription(d.well);
        plate.addWell(well);
      }
      while (well.sizeOfWellSampleList() <= d.site) {
        final WellSample qSample = new WellSample();
        qSample.setIndex(new NonNegativeInteger(well.sizeOfWellSampleList()));
        well.addWellSample(qSample);
View Full Code Here

Examples of ome.xml.model.Plate

        final WellSample wellSample = image.getLinkedWellSample(0);
        putIfNotNull(map, MD_SITE, wellSample.getIndex());
        final Well well = wellSample.getWell();
        if (well != null) {
          map.put(MD_WELL, getWellName(well.getRow().getValue(), well.getColumn().getValue()));
          Plate plate = well.getPlate();
          if (plate != null) {
            map.put(MD_PLATE, well.getPlate().getName());
          }
        }
      }
View Full Code Here

Examples of org.mcisb.tracking.Plate

                  plasmids.add(temporaryPlasmid);
                  }
                 
              }
             
              final Plate plate = (Plate)plates.get( Integer.valueOf( elements[ columnNames.indexOf( BLOCK ) ] ) );
              plate.setValueAt( new Spot( new SpotReading( plasmids, plasmids ) ), Integer.parseInt( elements[ columnNames.indexOf( ROW ) ] ) - 1, Integer.parseInt( elements[ columnNames.indexOf( COLUMN ) ] ) - 1 );
            }
          }
          else
          {
            columnNames = Arrays.asList( elements );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.