|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--SetupLayouts
This class sets upthe array layouts from either preloads or files. Cvt2Mae stores array layouts in /ArrayLayouts as *.alo files. When the user presses "Done" after Editing an array layout (make sure it has a unique name) it should then copy that layout to an .alo file and also move it to the top of the sul.alList[i].layoutName[] list and then update the GUI by redoing the cvt.gui.chipsetChoice Choice widget and refresh the screen.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file.
| Field Summary | |
ArrayLayout[] |
alList
[0:maxAL-1] array layouts to choose from max of MAX_ARRAY_LAYOUTS |
private boolean |
alo_allowNegQuantDataFlag
ALO variable: allow negative quant dat |
private long |
alo_bitProps
ALO variable: bit mcd.PROP_xxxx properties |
private boolean |
alo_chkAndEditFieldNamesFlag
flag: check and edit Samples and Field names data before use. |
private int |
alo_colsPerGrid
ALO variable: # of columns/grid |
private java.lang.String |
alo_commentToken
ALO variable: optional comment token |
private java.lang.String[] |
alo_desiredFields
ALO variable: list of FieldMaps for the layout |
private int |
alo_expectedNbrTokens
ALO variable: # of expected tokens |
private java.lang.String |
alo_geoPlatformID
Optional GEO Platform ID |
boolean |
alo_hasBkgrdDataFlag
ALO variable: has background intensity data |
private boolean |
alo_hasMultDatasetsFlag
ALO variable: input file has multiple samples |
boolean |
alo_hasQuantXYcoordsFlag
ALO variable: has actual quant XY coordinates data |
private java.lang.String |
alo_initialKeyword
ALO variable: optional initial keyword in leftmost field |
private java.lang.String |
alo_layoutName
ALO variable: name of the layout |
private int |
alo_maxFields
ALO variable: number of duplicate Fields of Grids/array |
private int |
alo_maxRowsExpected
ALO variable: maximum number of spots (elements or rows)/sample |
private int |
alo_nGridsPerField
ALO variable: # of grids/field |
private boolean |
alo_pseudoArrayFlag
ALO variable: use generated PseudoArray image |
private java.lang.String |
alo_quantTool
ALO variable: name of the quantification program |
private int |
alo_rowsPerGrid
ALO variable: # of rows/grid |
private int |
alo_rowWithData
ALO variable: # of row of FieldQ input file that contains data |
private int |
alo_rowWithFields
ALO variable: # of row of FieldQ input file that contains Field names |
private int |
alo_rowWithSamples
ALO variable: # of row of FieldQ input file that contains sample names |
private int |
alo_rowWithSepGIPOData
ALO variable: # of row of FieldG separate GIPO input file that contains data |
private int |
alo_rowWithSepGIPOFields
ALO variable: # of row of FieldG separate GIPO input file that contains Field names |
private java.lang.String |
alo_species
ALO variable: species of sample |
private boolean |
alo_specifyGeometryByNbrSpotsFlag
ALO variable: specify (F,G,R,C) from # of spots in PseudoArray |
private java.lang.String |
alo_UniGeneSpeciesPrefix
ALO variable: UniGene 2 letter prefix (eg. |
private boolean |
alo_useRatioDataFlag
ALO variable: data is ratio data (eg. |
private java.lang.String |
alo_vendor
ALO variable: vendor making the array |
java.lang.String[] |
aloFile
[0:nALOfilesFound-1] *.alo ALO files found the the ArrayLayout/ directory |
private java.lang.String |
aloFileName
ALO variable: variables for parsed .alo file |
private java.lang.String |
aloFileVersion
ALO variable: Version # of .alo file |
Cvt2Mae |
cvt
Global link to Cvt2Mae instance |
private Element[] |
datum
data elements from the input table |
private java.lang.String[] |
defDesiredFields
Default desired fields table with no data. |
private int |
expectedNbrTokens
expected # of tokens for this layout if not 0. |
int |
firstAL
index of first default array layout in the ALO list |
int |
firstUserALO
the index of the first user defined ALO. |
private java.lang.String |
fullPathAloFile
full path of AL file trying to read |
ImageAnalysisMethod[] |
iam
[0:nIAused-1] image analysis methods to choose from max of MAX_IMG_ANALY_METHODS |
int |
lastAL
index of last default array layout in the ALO list |
int |
maxAL
max # of array layouts in the ALO list |
int |
maxIAM
max # of image analysis methods |
MaeConfigData |
mcd
Global link to MaeConfigData instance |
int |
nALOfilesFound
# of all *.alo files found in the ArrayLayout/ directory |
boolean |
readALOflag
set to true if read .alo files |
static int |
REMAP_GIPO
REMAP codes - remapping GIPO. |
static int |
REMAP_QUANT
REMAP codes - remapping QUANT. |
static int |
REMAP_SAMPLE
REMAP codes - remapping SAMPLE. |
static FieldMap |
specialFM
Special Field Map for mapping our symbols see getMinReqFieldList() |
int |
useAL
array layout to use, -1 means failed |
int |
useIAM
method to use, -1 means failed |
UtilCM |
util
Global link to UtilCM instance |
| Constructor Summary | |
SetupLayouts(Cvt2Mae cvt)
SetupLayouts() - Constructor |
|
| Method Summary | |
private boolean |
checkAndMakeALOdir(java.lang.String aloDir)
checkAndMakeALOdir()- check for ArrayLayout/ directory tree. |
private boolean |
chkUniqueLayoutName(java.lang.String layoutName)
chkUniqueLayoutName() - return TRUE if layout name is unique. |
void |
copyALOtoMCDstate()
copyALOtoMCDstate() - Copy al[useAL].XXX state to mcd.XXX state. |
void |
copyMCDtoALOstate()
copyMCDtoALOstate() - Copy mcd.XXX state to al[useAL].XXX state. |
private java.lang.String |
cvArrayLayoutToTableDataStr(ArrayLayout al)
cvArrayLayoutToTableDataStr() - make prettyprint (N,V) string for writing to .alo file. |
private void |
deleteOldStyleAffyALOnamesatV70()
deleteOldStyleAffyALOnamesatV70() - hack to remove bogus .alo names from the ArrayLayout directory so they don't appear in the list with the new names. |
boolean |
getMaeToUserFields(java.lang.String fileName,
FieldMap fm,
int row,
int remapMode,
boolean useMaxFieldsFlag)
getMaeToUserFields() - extract desired fields from row of tokens by reading them from the fileName. |
private java.lang.String[] |
getMinReqFieldList(int remapMode)
getMinReqFieldList() - get minimal required list of fields based on current mcd state. |
java.lang.String |
getPrintStringFieldRow(java.lang.String dirName,
java.lang.String srcFileName,
int row,
java.lang.String msg)
getPrintStringFieldRow() - get print string of specified row of file |
private java.lang.String |
getValueByName(FileTable ft,
java.lang.String name)
getValueByName() - get Value by Name for Table with Fields[0:1] = {Name","Value"}. |
private boolean |
getValueByNameBool(FileTable ft,
java.lang.String name)
getValueByNameBool() - get int Value by Name for Table with Fields[0:1] = {Name","Value"}. |
private int |
getValueByNameInt(FileTable ft,
java.lang.String name)
getValueByNameInt() - get int Value by Name for Table with Fields[0:1] = {Name","Value"}. |
private long |
getValueByNameLong(FileTable ft,
java.lang.String name)
getValueByNameLong() - get long Value by Name for Table with Fields[0:1] = {Name","Value"}. |
private boolean |
parseArrayLayoutToTableData(FileTable ft)
parseArrayLayoutToTableData() - parse (N,V) table data to alo_XXXX vars. |
private boolean |
readArrayLayouts()
readArrayLayouts() - read list of known array layouts from disk layout database directory. |
boolean |
removeALOfileFromALOlist(java.lang.String aloFName)
removeALOfileFromALOlist() - remove ALO entry if match file name |
boolean |
setPseudoArrayToCurALO()
setPseudoArrayToCurALO() - set PseudoArray values to al[useAL].XXX state. |
boolean |
setPseudoArrayToCurMCD()
setPseudoArrayToCurMCD() - set PseudoArray values to mcd.XXX state. |
boolean |
setupArrayLayouts()
setupArrayLayouts() - setup list of known array layouts. |
private void |
setupDefaultArrayLayouts()
setupDefaultArrayLayouts() - setup list of default array layouts These are hardwired values. |
boolean |
setupImageAnalysisMethods()
setupImageAnalysisMethods() - setup list of image analysis methods [DEPRICATED FOR NOW]. |
boolean |
writeArrayLayout(ArrayLayout a,
boolean logMsgFlag)
writeArrayLayout() - write edited ArrayLayout 'a' else no-op. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int REMAP_GIPO
public static final int REMAP_QUANT
public static final int REMAP_SAMPLE
public Cvt2Mae cvt
public MaeConfigData mcd
public UtilCM util
public ArrayLayout[] alList
public int maxAL
public int firstAL
public int lastAL
public int useAL
public boolean readALOflag
public ImageAnalysisMethod[] iam
public int maxIAM
public int useIAM
public int firstUserALO
public int nALOfilesFound
public java.lang.String[] aloFile
private java.lang.String fullPathAloFile
private Element[] datum
private int expectedNbrTokens
public static FieldMap specialFM
private java.lang.String aloFileVersion
private java.lang.String aloFileName
private java.lang.String alo_vendor
private java.lang.String alo_layoutName
private java.lang.String alo_species
private java.lang.String alo_quantTool
private java.lang.String alo_UniGeneSpeciesPrefix
private java.lang.String alo_commentToken
private java.lang.String alo_initialKeyword
private boolean alo_hasMultDatasetsFlag
private boolean alo_specifyGeometryByNbrSpotsFlag
private boolean alo_allowNegQuantDataFlag
public boolean alo_hasBkgrdDataFlag
public boolean alo_hasQuantXYcoordsFlag
private int alo_maxFields
private int alo_nGridsPerField
private int alo_rowsPerGrid
private int alo_colsPerGrid
private int alo_maxRowsExpected
private int alo_expectedNbrTokens
private int alo_rowWithSamples
private int alo_rowWithFields
private int alo_rowWithData
private int alo_rowWithSepGIPOFields
private int alo_rowWithSepGIPOData
private boolean alo_pseudoArrayFlag
private boolean alo_useRatioDataFlag
private boolean alo_chkAndEditFieldNamesFlag
private java.lang.String[] alo_desiredFields
private long alo_bitProps
private java.lang.String alo_geoPlatformID
private final java.lang.String[] defDesiredFields
| Constructor Detail |
public SetupLayouts(Cvt2Mae cvt)
cvt - is instance of Cvt2Mae| Method Detail |
public boolean removeALOfileFromALOlist(java.lang.String aloFName)
aloFName - is name of .alo fileprivate void deleteOldStyleAffyALOnamesatV70()
private boolean readArrayLayouts()
1. read directory contents 2. read the layouts into alList[1:maxAL-1]. Note: slot [0] is forentry that is pushed before we get here so maxAL starts at 1.
ArrayLayout,
FileTable.readFileAsTable(java.lang.String),
FileTable,
getValueByName(FileTable, java.lang.String),
parseArrayLayoutToTableData(FileTable)private boolean parseArrayLayoutToTableData(FileTable ft)
ft - is FileTable of array layoutsgetValueByName(FileTable, java.lang.String),
getValueByNameBool(FileTable, java.lang.String),
getValueByNameInt(FileTable, java.lang.String)
private java.lang.String getValueByName(FileTable ft,
java.lang.String name)
ft - is FileTablename - to lookup
private long getValueByNameLong(FileTable ft,
java.lang.String name)
ft - is FileTablename - to lookupUtilCM.cvs2l(java.lang.String, long),
getValueByName(FileTable, java.lang.String)
private int getValueByNameInt(FileTable ft,
java.lang.String name)
ft - is FileTablename - to lookupUtilCM.cvs2i(java.lang.String, int),
getValueByName(FileTable, java.lang.String)
private boolean getValueByNameBool(FileTable ft,
java.lang.String name)
ft - is FileTablename - to lookupUtilCM.cvs2b(java.lang.String, boolean),
getValueByName(FileTable, java.lang.String)private java.lang.String cvArrayLayoutToTableDataStr(ArrayLayout al)
al - is array layout to useFieldMapprivate boolean checkAndMakeALOdir(java.lang.String aloDir)
aloDir - is location of ArrayLayout/ directory
public boolean writeArrayLayout(ArrayLayout a,
boolean logMsgFlag)
a - is array layout to writelogMsgFlag - to log this transactionUtilCM.logMsg(java.lang.String, java.awt.Color),
UtilCM.logMsg2(java.lang.String, java.awt.Color),
UtilCM.logMsg3(java.lang.String, java.awt.Color),
cvArrayLayoutToTableDataStr(ArrayLayout)private boolean chkUniqueLayoutName(java.lang.String layoutName)
layoutName - to checkpublic boolean setupArrayLayouts()
ArrayLayout,
UtilCM.logMsg(java.lang.String, java.awt.Color),
UtilCM.logMsg2(java.lang.String, java.awt.Color),
UtilCM.logMsg3(java.lang.String, java.awt.Color),
readArrayLayouts(),
setupDefaultArrayLayouts(),
writeArrayLayout(ArrayLayout, boolean)private void setupDefaultArrayLayouts()
ArrayLayout,
chkUniqueLayoutName(java.lang.String)public boolean setupImageAnalysisMethods()
ImageAnalysisMethodpublic boolean setPseudoArrayToCurMCD()
PseudoArray,
UtilCM.logMsg(java.lang.String, java.awt.Color)public boolean setPseudoArrayToCurALO()
PseudoArray,
UtilCM.logMsg(java.lang.String, java.awt.Color)public void copyMCDtoALOstate()
public void copyALOtoMCDstate()
MaeConfigData.setMCDstateFromBitProp(long),
ArrayLayoutprivate java.lang.String[] getMinReqFieldList(int remapMode)
remapMode - to enable remaping of field namesFieldMap.addEntry(java.lang.String, java.lang.String, java.lang.String, java.lang.String),
FieldMap
public boolean getMaeToUserFields(java.lang.String fileName,
FieldMap fm,
int row,
int remapMode,
boolean useMaxFieldsFlag)
fileName - to readfm - is field map to userow - to useremapMode - useMaxFieldsFlag - FieldMapGUI,
FileTable,
FileTable.readTableFieldsFromFile(java.lang.String, int),
UtilCM.logMsg(java.lang.String, java.awt.Color),
UtilCM.logMsg2(java.lang.String, java.awt.Color),
getMinReqFieldList(int)
public java.lang.String getPrintStringFieldRow(java.lang.String dirName,
java.lang.String srcFileName,
int row,
java.lang.String msg)
dirName - is directory name of filesrcFileName - file namerow - to readmsg - to display while reading fileFileTable,
FileTable.readTableFieldsFromFile(java.lang.String, int)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||