Changeset 5744


Ignore:
Timestamp:
12/16/09 09:43:14 (10 years ago)
Author:
melissa
Message:

Swapped plate naming conventions for plates with > 26 rows and added spot number to image names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/ScanrReader.java

    r5729 r5744  
    360360    } 
    361361 
    362     store.setPlateRowNamingConvention("A", 0); 
    363     store.setPlateColumnNamingConvention("1", 0); 
     362    if (wellRows > 26) { 
     363      store.setPlateRowNamingConvention("1", 0); 
     364      store.setPlateColumnNamingConvention("A", 0); 
     365    } 
     366    else { 
     367      store.setPlateRowNamingConvention("A", 0); 
     368      store.setPlateColumnNamingConvention("1", 0); 
     369    } 
    364370    store.setPlateName(plateName, 0); 
    365371 
     
    383389      store.setImageID(imageID, i); 
    384390 
    385       String name = "Well " + String.valueOf((char) ('A' + wellRow)) + 
    386         (wellCol + 1) + ", Field " + (field + 1); 
     391      String row = 
     392        String.valueOf(wellRows > 26 ? wellRow + 1 : (char) ('A' + wellRow)); 
     393      String col = 
     394        String.valueOf(wellRows > 26 ? (char) ('A' + wellCol) : wellCol + 1); 
     395      String name = "Well " + row + col + ", Field " + (field + 1) + 
     396        " (Spot " + (i + 1) + ")"; 
    387397      store.setImageName(name, i); 
    388398    } 
Note: See TracChangeset for help on using the changeset viewer.