|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CompositeDatabase
Class to operate on composite sets of Hybridized Samples lists HP-X set, HP-Y set and HP-E list. It computes global statistics and also is used to access list of averaged genes from these lists.
The current gene associated parameters are defined in this class and include: (isValidObjFlag, objMID, objGID, objGIDG, objField, objGrid, objRow, objCol, objX, objY).
It includes many primary methods used throughout MAExplorer for accessing this data including:
List of methods setCurrentGenes() - set current genes to those in the GeneClass database calcRatioHistVal() - compute histogram bin value & increment ratio histogram calcRatioHists() - compute ratio histogram of d1List[]/d2List[] data calcHistOfHP_XYRatios() - compute histogram of HP-X/-Y (or 'sets') spot ratios of filtered data setIntensHistCLfromIntensRange() - set GeneList of (F1+F2)/2 in intensity range setRatioHistCLfromF1F2Ratios() - set GeneList of F1/F2 ratios in ratio range setRatioHistCLfromHP_XYRatios() - set GeneList of X/Y ratios in ratio range setRatioHistCLfromHP_XYsetRatios() - set GeneList of X/Y set ratios in ratio range lookupHPcoords() - lookup closest gene name by (x,y) in sample pseudoarray and set current gene setOBJtoGID() - set the current gene xxxOBJ values to the specified GID setObjCoordFromMaster_ID() - set gene xxxOBJ values from Master_ID name setObjCoordFromMID() - set gene xxxOBJ values from MID for current HP sample getNormHP_XandYdata() - get normalized list spot (HP-X,HP-Y) data passing the data filter getRawHP_XandYdata() - get raw list spot (HP-X,HP-Y) data passing the data filter getHP_XandYsetData() - get list spot (HP-X,HP-Y) sets data passing the data filter calAllSamples() - compute (meanCalDNA, stdDevCalDNA) calibration for all samples recalcNorms() - recompute normalizations for all samples calcHP_HPcorrelations() - compute HP vs. HP samples correlation coefficients table createHPmeanAndVarTable() - create table (HP,mn,stdDev,min,max,median) of raw intensity data recalcGlobalStats() - recompute global array statistics with all or just good spots
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/.
Filter
,
GeneList
,
HPxyData
,
MaHybridSample
,
SampleSets
Field Summary | |
(package private) java.awt.Color[] |
color_textHP
text HP labels shared colors |
private Filter |
fc
link to global Filter instance |
(package private) java.awt.Font[] |
font_textHP
text HP labels shared fonts |
(package private) float |
grandMeanCalDNA
grand mean HP Calib.DNA means for normalization. |
(package private) float |
grandMeanUseGeneSet
grand mean HP 'User Filter Gene Set' means for normalization. |
private SampleSets |
hps
link to global SamplesSets instance |
(package private) static HPxyData |
hpXYdata
generic HP-X/Y set object |
(package private) static boolean |
isValidObjFlag
Flag to indicate that the current gene (i.e. |
private MAExplorer |
mae
link to global MAExplorer instance |
private Maps |
map
link to global Maps instance |
(package private) float |
maxDataHP_X
max intensity HP_X in getNormHP_XandYdata |
(package private) float |
maxDataHP_Y
max intensity HP_Y in getNormHP_XandYdata |
(package private) int |
maxRatioHistIdx
max value found in ratioHist[] |
(package private) int |
maxTextItems
Common Grid labels for drawing onto the canvas. |
(package private) float |
minDataHP_X
min intensity HP_X in getNormHP_XandYdata |
(package private) float |
minDataHP_Y
min intensity HP_Y in getNormHP_XandYdata |
(package private) int |
minRatioHistIdx
min value found in ratioHist[] |
(package private) int |
nRatioHistBins
# of bins in ratioHist[] |
(package private) int |
nTextItems
|
(package private) int |
objCol
object Grid-Column that best matches xy coords if isValidObj is TRUE |
(package private) int |
objField
object Field that best matches xy coords if isValidObj is TRUE |
(package private) static int |
objGID
GridCoords gid of object if isValidObj is TRUE |
(package private) int |
objGIDG
Gang f' GridCoords gid of object if isValidObj is TRUE |
(package private) int |
objGrid
object Grid that best matches xy coords if isValidObj is TRUE |
(package private) static int |
objMID
Gene index mid of object if isValidObj is TRUE |
(package private) int |
objRow
object Grid-Row that best matches xy coords if isValidObj is TRUE |
(package private) int |
objX
optimal spot X position if isValidObj is TRUE |
(package private) int |
objY
optimal spot Y position if isValidObj is TRUE |
(package private) int[] |
ratioHist
histogram of g1/g2 ratios [0:nRatioHistBins] in range 0.01:100.0 |
(package private) double[] |
ratioValue
scale of ratio histogram of g1/g2 ratios |
(package private) boolean |
recursionFlag
flag: track last updated object to avoid recursion problems |
(package private) float[][] |
rSqHP_HP
[1:nRows][1:nCols] rSq, HP vs HP correlation coefficient |
private GeneList |
tempCD_CL
temporary GeneList used in local gene list operations |
Constructor Summary | |
(package private) |
CompositeDatabase(MAExplorer mae)
CompositeDatabase() - constructor to set up data structures. |
Method Summary | |
(package private) boolean |
calAllSamples()
calAllSamples() - compute (meanCalDNA, stdDevCalDNA) calibration for all samples |
(package private) boolean |
calcHistOfF1F2Ratios(GeneList ml,
MaHybridSample ms)
calcHistOfF1F2Ratios() - compute histogram of F1/F2 ratios for spots which are selected in the GeneList ml. |
(package private) boolean |
calcHistOfHP_XYratios(GeneList ml,
boolean useXYsetsFlag)
calcHistOfHP_XYRatios() - compute histogram of HP-X/-Y (or 'sets') spot ratios of filtered data |
(package private) SimpleTable |
calcHP_HPcorrelations()
calcHP_HPcorrelations() - compute HP vs. |
(package private) void |
calcRatioHists(int nList,
float[] d1List,
float[] d2List,
GeneList ml)
calcRatioHists() - compute ratio histogram of d1List[]/d2List[] data. |
(package private) double |
calcRatioHistVal(float g1,
float g2)
calcRatioHistVal() - compute histogram bin value & increment ratio histogram |
(package private) SimpleTable |
calDNAhybSamplesTable()
calDNAhybSamplesTable() - calc. |
(package private) void |
cleanup()
cleanup() - cleanup global static allocated variables in this class. |
(package private) Table |
createHPmeanAndVarTable()
createHPmeanAndVarTable() - create table (HP,mn,stdDev,min,max,median) of raw intensity data. |
(package private) int |
getHP_XandYsetData(float[] xList,
float[] yList,
int[] propList,
GeneList ml,
boolean setPropsFlag,
boolean filterByMLflag)
getHP_XandYsetData() - get list spot (HP-X,HP-Y) sets data passing the data filter mae.fc.workingCL. |
(package private) int |
getNormHP_XandYdata(float[] xList,
float[] yList,
int[] propList,
GeneList ml,
MaHybridSample msX,
MaHybridSample msY,
boolean setPropsFlag,
boolean filterByMLflag)
getNormHP_XandYdata() - get normalized list spot (HP-X,HP-Y) data passing data filter ml or mae.fc.workingCL. |
(package private) int |
getRawHP_XandYdata(float[] xData,
float[] yData,
float[] xBkgd,
float[] yBkgd,
int[] propList,
GeneList ml,
MaHybridSample msX,
MaHybridSample msY,
boolean setPropsFlag,
boolean filterByMLflag)
getRawHP_XandYdata() - get list raw spot (HP-X,HP-Y) data passing data filter ml or mae.fc.workingCL. |
(package private) java.lang.String |
lookupHPcoords(int x,
int y,
int distThreshold,
boolean useFieldNameFlag,
MaHybridSample ms)
lookupHPcoords() - lookup closest gene name by (x,y) in sample pseudoarray and set current gene if < distThreshold away, else return "". |
(package private) void |
recalcGlobalStats(boolean useGoodSpotsForGlobalStatsFlag)
recalcGlobalStats() - recompute global array statistics with all or just good spots. |
(package private) void |
recalcNorms(java.lang.String sMethod,
boolean recomputeNormalizationExtremaFlag)
recalcNorms() - recompute normalizations for all samples in the hps.msList[]. |
(package private) void |
setCurrentGenes(int curGenesMode)
setCurrentGenes() - set current genes to those in the GeneClass database if the curGenesMode is true. |
(package private) boolean |
setIntensHistCLfromIntenRange(GeneList resultCL,
MaHybridSample ms,
float intensLB,
float intensUB,
boolean outsideRangeFlag)
setIntensHistCLfromIntensRange() - set GeneList of (F1+F2)/2 in intensity range |
(package private) void |
setObjCoordFromMaster_ID(java.lang.String masterID)
setObjCoordFromMaster_ID() - set gene xxxOBJ values from Master_ID name |
(package private) void |
setObjCoordFromMID(int mid,
java.lang.Object sObj)
setObjCoordFromMID() - set gene xxxOBJ values from MID for current HP sample. |
(package private) void |
setOBJtoGID(int gid,
MaHybridSample ms)
setOBJtoGID() - set the current gene xxxOBJ values to the specified GID. |
(package private) boolean |
setRatioHistCLfromF1F2Ratios(GeneList resultCL,
MaHybridSample ms,
float ratioLB,
float ratioUB,
boolean outsideRangeFlag)
setRatioHistCLfromF1F2Ratios() - set GeneList of F1/F2 ratios in ratio range |
(package private) boolean |
setRatioHistCLfromHP_XYratios(GeneList resultCL,
MaHybridSample msX,
MaHybridSample msY,
float ratioLB,
float ratioUB,
boolean outsideRangeFlag)
setRatioHistCLfromHP_XYRatios() - set GeneList of X/Y ratios in ratio range |
(package private) boolean |
setRatioHistCLfromHP_XYsetRatios(GeneList resultCL,
float ratioLB,
float ratioUB,
boolean outsideRangeFlag)
setRatioHistCLfromHP_XYsetRatios() - set GeneList of X/Y set ratios in ratio range |
Methods inherited from class java.lang.Object |
|
Field Detail |
private MAExplorer mae
private Maps map
private Filter fc
private SampleSets hps
int[] ratioHist
double[] ratioValue
int maxRatioHistIdx
int minRatioHistIdx
int nRatioHistBins
static HPxyData hpXYdata
float minDataHP_X
float minDataHP_Y
float maxDataHP_X
float maxDataHP_Y
private GeneList tempCD_CL
float grandMeanUseGeneSet
float grandMeanCalDNA
float[][] rSqHP_HP
static boolean isValidObjFlag
static int objMID
static int objGID
int objGIDG
int objField
int objGrid
int objRow
int objCol
int objX
int objY
int maxTextItems
int nTextItems
java.awt.Color[] color_textHP
java.awt.Font[] font_textHP
boolean recursionFlag
Constructor Detail |
CompositeDatabase(MAExplorer mae)
mae
- is the MAExplorer instanceGeneList
,
GeneList.clear()
,
HPxyData
Method Detail |
void setCurrentGenes(int curGenesMode)
curGenesMode
- GeneList.addGene(Gene)
,
GeneList.clear()
double calcRatioHistVal(float g1, float g2)
g1
- intensity valueg2
- intensity valuevoid calcRatioHists(int nList, float[] d1List, float[] d2List, GeneList ml)
nList
- is the size of the data arraysd1List
- ARG: is list of data1 datad2List
- ARG: is list of data2 dataml
- RTN: is GeneList to use in filtering the dataGene.setGeneData(float)
,
GeneList.clear()
,
calcRatioHistVal(float, float)
boolean calcHistOfF1F2Ratios(GeneList ml, MaHybridSample ms)
ml
- is gene list to use in filteringms
- is the Sample to useMaHybridSample.getF1F2Data(float[], float[], int[], GeneList, boolean, boolean, boolean)
,
calcRatioHists(int, float[], float[], GeneList)
boolean calcHistOfHP_XYratios(GeneList ml, boolean useXYsetsFlag)
ml
- is gene list to use in filteringms
- is the Sample to usegetHP_XandYsetData(float[], float[], int[], GeneList, boolean, boolean)
,
getNormHP_XandYdata(float[], float[], int[], GeneList, MaHybridSample, MaHybridSample, boolean, boolean)
,
calcRatioHists(int, float[], float[], GeneList)
boolean setIntensHistCLfromIntenRange(GeneList resultCL, MaHybridSample ms, float intensLB, float intensUB, boolean outsideRangeFlag)
resultCL
- RTN: is the resulting gene listms
- is the Sample to useintensLB
- is lower bound of intensityintensUB
- is upper bound of intensityoutsideRangeFlag
- test if outside of range else inside rangeFilter.isMIDinWorkingCL(int)
,
GeneList.addGene(Gene)
,
GeneList.clear()
,
MaHybridSample.getDataByGID(int, boolean, int)
,
getNormHP_XandYdata(float[], float[], int[], GeneList, MaHybridSample, MaHybridSample, boolean, boolean)
,
calcRatioHistVal(float, float)
boolean setRatioHistCLfromF1F2Ratios(GeneList resultCL, MaHybridSample ms, float ratioLB, float ratioUB, boolean outsideRangeFlag)
resultCL
- RTN: is the resulting gene listms
- is the Sample to useratioLB
- is lower bound of intensityratioUB
- is upper bound of intensityoutsideRangeFlag
- test if outside of range else inside rangeGeneList.addGene(Gene)
,
GeneList.clear()
,
MaHybridSample.getF1F2Data(float[], float[], int[], GeneList, boolean, boolean, boolean)
,
calcRatioHistVal(float, float)
boolean setRatioHistCLfromHP_XYratios(GeneList resultCL, MaHybridSample msX, MaHybridSample msY, float ratioLB, float ratioUB, boolean outsideRangeFlag)
resultCL
- RTN: is the resulting gene listmsX
- is the X Sample to usemsY
- is the Y Sample to useratioLB
- is lower bound of intensityratioUB
- is upper bound of intensityoutsideRangeFlag
- test if outside of range else inside rangeGeneList.addGene(Gene)
,
GeneList.clear()
,
calcRatioHistVal(float, float)
,
getNormHP_XandYdata(float[], float[], int[], GeneList, MaHybridSample, MaHybridSample, boolean, boolean)
boolean setRatioHistCLfromHP_XYsetRatios(GeneList resultCL, float ratioLB, float ratioUB, boolean outsideRangeFlag)
resultCL
- RTN: is the resulting gene listratioLB
- is lower bound of intensityratioUB
- is upper bound of intensityoutsideRangeFlag
- test if outside of range else inside rangeGeneList.addGene(Gene)
,
GeneList.clear()
,
calcRatioHistVal(float, float)
,
getNormHP_XandYdata(float[], float[], int[], GeneList, MaHybridSample, MaHybridSample, boolean, boolean)
java.lang.String lookupHPcoords(int x, int y, int distThreshold, boolean useFieldNameFlag, MaHybridSample ms)
x
- coordinagey
- coordinatesdistThreshold
- of distance of (x,y) to nearest spot in sampleuseFieldNameFlag
- to generate the field name (if > 1 field)ms
- is sample to test coordinatesGridCoords.cvtGID2str(int, boolean)
,
Component.repaint()
,
setOBJtoGID(int, MaHybridSample)
void setOBJtoGID(int gid, MaHybridSample ms)
void setObjCoordFromMaster_ID(java.lang.String masterID)
masterID
- is the Master_ID for the current geneGipoTable.getMIDfromMaster_IDhashTable(java.lang.String)
,
setObjCoordFromMID(int, java.lang.Object)
void setObjCoordFromMID(int mid, java.lang.Object sObj)
mid
- gene MID to set as the current gene (obj)sObj
- to pass onto updateCurGene()PopupRegistry.updateCurGene(int, int, java.lang.Object)
,
ScrollableImageCanvas.setObjPos(int, int)
,
Component.repaint()
int getNormHP_XandYdata(float[] xList, float[] yList, int[] propList, GeneList ml, MaHybridSample msX, MaHybridSample msY, boolean setPropsFlag, boolean filterByMLflag)
If msX==msY, then get msX.f1 for msX and msX.f2 for msY else get (msX.f1+msX.f2)/2 for msX and (msY.f1+msY.f2)/2 for msY. The assumption is made that grid structure is same for both msX and msY. Also set the (min/max)(DataHP_X,DataHP_Y) values. Return the number of points nList in the list[0:nList-1].
xList[max
- # genes to get] to return HP-X valuesyList[max
- # genes to get] to return optional HP-Y valuespropList[max
- # genes to get] gene property valuesml
- is the GeneList to save genes or to filter by.
To filter by all genes, set ml to set of all genes.msX
- is HP-X sample to usemsY
- is HP-Y sample to use - optionalsetPropsFlag
- set the propList[] data from fc.workingCL as
IS_FILTERED or IS_NOT_FILTERED. If filterByMLflag, then copy
the gene.prop field.filterByMLflag
- if true, then filter by ml GeneList. To filter
by all genes, set ml to set of all genes mae.gct.allGenesCLFilter.isMIDinWorkingCL(int)
,
Gene.setGeneData(float)
,
GeneList.clearNull()
,
GeneList.setGene(Gene, int)
,
GeneBitSet.isItemInGeneBitSet(int)
,
MaHybridSample.getDataByGID(int, boolean, int)
,
MaHybridSample.getF1F2Data(float[], float[], int[], GeneList, boolean, boolean, boolean)
,
getHP_XandYsetData(float[], float[], int[], GeneList, boolean, boolean)
int getRawHP_XandYdata(float[] xData, float[] yData, float[] xBkgd, float[] yBkgd, int[] propList, GeneList ml, MaHybridSample msX, MaHybridSample msY, boolean setPropsFlag, boolean filterByMLflag)
NOTE: This method does NOT get 'set' data since it is ambiguous how to "average" raw data (that is why we normalize it :-). So this method ignores mae.useHPxySetDataFlag. Use getNormHP_XandYdata() to set mean set data.
Return the number of points nList in the list[0:nList-1].
xData[max
- # genes to get] to return HP-X intensity valuesyData[max
- # genes to get] to return optional HP-Y intensity valuesxBkgd[max
- # genes to get] to return HP-X background valuesyBkgd[max
- # genes to get] to return optional HP-Y background valuespropList[max
- # genes to get] gene property valuesml
- is the GeneList to save genes or to filter by.
To filter by all genes, set ml to set of all genes.msX
- is HP-X sample to usemsY
- is HP-Y sample to use - optionalsetPropsFlag
- set the propList[] data from fc.workingCL as
IS_FILTERED or IS_NOT_FILTERED. If filterByMLflag, then copy
the gene.prop field.filterByMLflag
- if true, then filter by ml GeneList. To filter
by all genes, set ml to set of all genes mae.gct.allGenesCLFilter.isMIDinWorkingCL(int)
,
Gene.setGeneData(float)
,
GeneList.clearNull()
,
GeneList.setGene(Gene, int)
,
GeneBitSet.isItemInGeneBitSet(int)
,
MaHybridSample.getDataByGID(int, boolean, int)
,
MaHybridSample.getF1F2Data(float[], float[], int[], GeneList, boolean, boolean, boolean)
,
getHP_XandYsetData(float[], float[], int[], GeneList, boolean, boolean)
int getHP_XandYsetData(float[] xList, float[] yList, int[] propList, GeneList ml, boolean setPropsFlag, boolean filterByMLflag)
xList[max
- # genes to get] HP-X valuesyList[max
- # genes to get] return optional HP-Y valuespropList[max
- # genes to get] optional property valuesml
- is the GeneList to save genes in or filter by.To filter
by all genes, set ml to set of all genes mae.gct.allGenesCLsetPropsFlag
- set the propList[] data from fc.workingCL as
IS_FILTERED or IS_NOT_FILTEREDfilterByMLflag
- if true, then filter by mlFilter.isMIDinWorkingCL(int)
,
Gene.setGeneData(float)
,
GeneList.clear()
,
GeneList.clearNull()
,
GeneList.setGene(Gene, int)
,
GeneBitSet.isItemInGeneBitSet(int)
,
HPxyData.setupDataStruct(boolean)
,
HPxyData.updateDataAndStat(int)
boolean calAllSamples()
MaHybridSample.calcMeanCalDNA()
,
MaHybridSample.calcMeanUseNormGeneSet()
void recalcNorms(java.lang.String sMethod, boolean recomputeNormalizationExtremaFlag)
sMethod
- is the name of the current normalization methodrecomputeNormalizationExtremaFlag
- if setComponent.repaint()
,
MaHybridSample.calcIntensScaleExtrema()
,
PopupRegistry.updateFilter(GeneList)
,
StateScrollers.regenerateScrollers(boolean)
,
StateScrollers.setRangeMaps()
,
Util.showMsg(java.lang.String)
,
calAllSamples()
SimpleTable calDNAhybSamplesTable()
MaHybridSample
,
PopupRegistry.updateFilter(GeneList)
,
SimpleTable
,
Util.cvf2s(float, int)
,
calAllSamples()
SimpleTable calcHP_HPcorrelations()
MathMAE.calcXYstat(int, float[], float[], int[], java.lang.String, java.lang.String)
,
SimpleTable
,
Util.showMsg3(java.lang.String)
,
getNormHP_XandYdata(float[], float[], int[], GeneList, MaHybridSample, MaHybridSample, boolean, boolean)
Table createHPmeanAndVarTable()
Table
,
Util.cvf2s(float, int)
void recalcGlobalStats(boolean useGoodSpotsForGlobalStatsFlag)
useGoodSpotsForGlobalStatsFlag
- if trueMaHybridSample.recalcGlobalStats(boolean)
,
PopupRegistry.updateCurGene(int, int, java.lang.Object)
,
PopupRegistry.updateFilter(GeneList)
void cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |