|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SimpleTable | +--Table | +--SamplesTable
The SamplesTable class is database for the Samples DB Table. It reads the tab-delimited SamplesDB.txt file from the Config/. It also contains methods to help handle queries on samples in the database. The Samples DB contains descriptive data for all samples - whether they are loaded or not. This lets us then lookup file names for samples that were not initially loaded and then load them. This data also includes (Login, Project) security information as well as Sample_ID and Database_File, and other optional fields.
It reads a subset of the actual table data from FILE/URL. This Samples DB file may consist of the following fields:
Sample_ID Source Strain Stage Probe Login Project Contributor Contrib_Institute Submission_Date Exposure Membrane_Nbr Database_File GeneCard_URL Histology_URL Model_URL Comments Menu_Stage_Name Membrane_LayoutNOTE: substitute - ("Membrane" is depricated for "Sample" - for now parse it both ways 4-18-00.) Sample_ID for Membrane_ID Sample_Nbr for Membrane_Nbr Sample_Layout for Membrane_Layout
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. This notice must be included with the code. The MAExplorer Mozilla and Legal files are available on http://maexplorer.sourceforge.net/.
Table
Field Summary | |
(package private) boolean |
hasValidDataFlag
set if data was read ok |
(package private) int |
idxBGAvg
|
(package private) int |
idxBGLow
|
(package private) int |
idxBGRms
|
(package private) int |
idxComments
The following fields were from the original Membranes.txt file. |
(package private) int |
idxContrib_Institute
The following fields were from the original Membranes.txt file. |
(package private) int |
idxContributor
The following fields were from the original Membranes.txt file. |
(package private) int |
idxDatabase_File
The following fields were from the original Membranes.txt file. |
(package private) int |
idxDatabaseFileID
The following fields were from the original Membranes.txt file. |
(package private) int |
idxExposure
The following fields were from the original Membranes.txt file. |
(package private) int |
idxFilterType
|
(package private) int |
idxFilterType_Descr
|
(package private) int |
idxGeneCard_URL
The following fields were from the original Membranes.txt file. |
(package private) int |
idxHistology_URL
The following fields were from the original Membranes.txt file. |
(package private) int |
idxLogin
The following fields were from the original Membranes.txt file. |
(package private) int |
idxMenu_Stage_Name
The following fields were from the original Membranes.txt file. |
(package private) int |
idxModel_URL
The following fields were from the original Membranes.txt file. |
(package private) int |
idxProbe
The following fields were from the original Membranes.txt file. |
(package private) int |
idxProject
The following fields were from the original Membranes.txt file. |
(package private) int |
idxSample_ID
The following fields were from the original Membranes.txt file. |
(package private) int |
idxSample_Nbr
The following fields were from the original Membranes.txt file. |
(package private) int |
idxSource
The following fields were from the original Membranes.txt file. |
(package private) int |
idxStage
The following fields were from the original Membranes.txt file. |
(package private) int |
idxStrain
The following fields were from the original Membranes.txt file. |
(package private) int |
idxSubmission_Date
The following fields were from the original Membranes.txt file. |
private MAExplorer |
mae
link to global instance of MAExplorer |
private java.lang.String |
maeTbl
remap table name |
Fields inherited from class Table |
bufSize, fileOKflag, fio |
Fields inherited from class SimpleTable |
fileName, msg, tCols, tData, tFields, title, tRows |
Constructor Summary | |
(package private) |
SamplesTable(MAExplorer mae,
java.lang.String fileName)
SamplesTable() - constructor to read Samples DB and set up table. |
Method Summary | |
(package private) boolean |
chkIfHPvisible(java.lang.String hpNameToChk)
chkIfHPvisible() - check if allowed to view HP sample. |
(package private) java.lang.String |
getTableFieldDataByHPname(java.lang.String fieldName,
java.lang.String hpName)
getTableFieldDataByHPname() - get data of fieldName of particular HP sample |
(package private) java.lang.String[] |
getUniqueTableFieldData(int fieldIdx)
getUniqueTableFieldData() - get list from SamplesDB.txt database Sort the array in ASCENDING order. |
(package private) boolean |
isHPnameIsAccessible(java.lang.String hpName)
isHPnameIsAccessible() - test if HP database name is accessible. |
(package private) SimpleTable |
makeHPrestrictedTable(Table srcTbl)
makeHPrestrictedTable() - make a Table of HPs restricted by login required. |
(package private) void |
readListOfSampleNames()
readListOfSampleNames() - get list of Sample (i.e. |
(package private) void |
setupFieldIndexes()
setupFieldIndexes() - set up indexes for common fields for speedups |
Methods inherited from class Table |
copyTable, createFileTable, getArrayOfTabDelimitedTokens, getData, getTableRowsSubset, getTableRowsSubset, insertTblInULHCtable, lookupFieldIdxAndRemapFieldName, makeTabDelimReport, readTable, storeDataBufParser |
Methods inherited from class SimpleTable |
freeTable, getTableRowFieldByRowIdx, getTableRowFieldIdxByRowIdx, lookupFieldIdx, setFieldData, setRowData, trimWhitespace |
Methods inherited from class java.lang.Object |
|
Field Detail |
private final java.lang.String maeTbl
private MAExplorer mae
int idxSample_ID
int idxStrain
int idxSource
int idxProbe
int idxStage
int idxLogin
int idxProject
int idxContributor
int idxContrib_Institute
int idxSubmission_Date
int idxExposure
int idxSample_Nbr
int idxDatabase_File
int idxDatabaseFileID
int idxGeneCard_URL
int idxHistology_URL
int idxModel_URL
int idxComments
int idxMenu_Stage_Name
int idxFilterType
int idxFilterType_Descr
int idxBGLow
int idxBGAvg
int idxBGRms
boolean hasValidDataFlag
Constructor Detail |
SamplesTable(MAExplorer mae, java.lang.String fileName)
mae
- is instance of MAExplorerfileName
- is file name of the Samples DBMAExplorer.logDRYROTerr(java.lang.String)
,
setupFieldIndexes()
Method Detail |
void setupFieldIndexes()
Table.lookupFieldIdxAndRemapFieldName(java.lang.String, java.lang.String)
java.lang.String getTableFieldDataByHPname(java.lang.String fieldName, java.lang.String hpName)
fieldName
- is the name of the fieldhpName
- is the name of the sampleTable.lookupFieldIdxAndRemapFieldName(java.lang.String, java.lang.String)
java.lang.String[] getUniqueTableFieldData(int fieldIdx)
fieldIdx
- is the index of the field (column) to retrieveSortMAE.sortArray(java.lang.String[], boolean)
void readListOfSampleNames()
Samples are defined by the keyword "image" following by the relative sample number (e.g. "image4"). 1. First, get all images specified in the PARAM and these are candidates for loading the samples. They are named "image1", "image2", ..., "imageMAX_HYBRID_SAMPLES". This pushes names into: mae.iSampleName[++mae.iHPnbr]= baseFile; mae.iImageFile[mae.iHPnbr]. Don't add a name if it is already in the list. 2. Then, add names to the list (primarily for loading later from the menus). These names will come from the Image_File field in the Samples.txt database. These names will be pushed into snHPName[++mae.snHPNbr] and snImageFile[]. Don't add a name if it is already in the list.
GetParams.setDefParam(java.lang.String, boolean)
,
MAExplorer.logDRYROTerr(java.lang.String)
,
Util.showMsg(java.lang.String)
SimpleTable makeHPrestrictedTable(Table srcTbl)
srcTbl
- super table to restrict by login accessSimpleTable
,
SimpleTable.lookupFieldIdx(java.lang.String)
,
chkIfHPvisible(java.lang.String)
boolean chkIfHPvisible(java.lang.String hpNameToChk)
hpNameToChk
- is the sample to checkboolean isHPnameIsAccessible(java.lang.String hpName)
hpName
- is the sample to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |