|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--GeneGeneDist
| Field Summary | |
private static Config |
cfg
link to global Config instance |
private static float[] |
cv1Tmp
temporary v1 vector[0:nEP-1] for computations |
private static float[] |
cv1TmpEP
temporary EP v1 vector[0:nEP-1] for computations |
private static float[] |
cv2Tmp
temporary v2 vector[0:nEP-1] for computations |
private static float[] |
cv2TmpEP
temporary EP v2 vector[0:nEP-1] for computations |
(package private) GeneList |
dataCL
Gene list to generate geneEPvector |
private static FileIO |
fio
link to global FileIO instance |
(package private) float[][] |
geneEPvector
normalized quantitation vector for all genes [0:nClist-1][0:nEP-1] also [0:nObj-1][0:nEP-1] |
private SampleSets |
hps
link to global SampleSets instance |
private static MAExplorer |
mae
link to global MAExplorer instance |
(package private) int |
nEP
size of EP vector |
(package private) int |
nMlist
# of genes |
| Constructor Summary | |
(package private) |
GeneGeneDist(MAExplorer mae)
GeneGeneDist() - constructor |
| Method Summary | |
private static int |
addr1D(int x,
int y)
addr1D() - lookup lower-diagonal addr1D(x,y) using [y' + x'*(x'+1)/2] address |
(package private) void |
calcGeneGeneDists(float[] ccDist1D,
int nClist,
int nEP)
calcGeneGeneDists() - compute the gene-gene Euclidean distances for all dataCL genes in the lower diagonal matrix. |
(package private) float[][] |
calcNormGeneVectors(GeneList dataCL,
int nClist)
calcNormGeneVectors() - compute HP-E intensity vector for dataCL.mList[]. |
(package private) void |
cleanup()
cleanup() - cleanup global static allocated variables in this class. |
(package private) float |
clusterDistance(Gene geneI,
Gene geneJ)
clusterDistance() - compute genes(I,J) cluster distance for HP-E samples. |
(package private) static int |
findGeneWithLeastSumDistances(float[] ccDist1D,
int nClist)
findGeneWithLeastSumDistances() - find gene with minimum cluster distance toall other genes. |
(package private) float |
geneGeneDist(float[] geneEPvector1,
float[] geneEPvector2,
int nEP)
geneGeneDist() - compute the gene-gene distance between two gene vectors. |
private void |
makeTmpVectors(int n)
makeTmpVectors() - create temp vectors if needed. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static MAExplorer mae
private static FileIO fio
private static Config cfg
private SampleSets hps
GeneList dataCL
int nMlist
int nEP
private static float[] cv1Tmp
private static float[] cv2Tmp
private static float[] cv1TmpEP
private static float[] cv2TmpEP
float[][] geneEPvector
| Constructor Detail |
GeneGeneDist(MAExplorer mae)
mae - is instance of MAExplorer| Method Detail |
private void makeTmpVectors(int n)
float[][] calcNormGeneVectors(GeneList dataCL,
int nClist)
dataCL - is the gene list to usenClist - is the # of genes in the gene listMaHybridSample.getDataByGID(int, boolean, int),
MathMAE.calcPearsonCorrCoef(float[], float[], int, boolean),
MathMAE.euclidDist(float[], float[], int, boolean),
makeTmpVectors(int)
float geneGeneDist(float[] geneEPvector1,
float[] geneEPvector2,
int nEP)
geneEPvector1 - is the gene vector for gene 1geneEPvector2 - is the gene vector for gene 2nEP - is the number of samples if used w/o HP-E list
float clusterDistance(Gene geneI,
Gene geneJ)
geneI - is first genegeneJ - is 2nd geneMaHybridSample.getDataByGID(int, boolean, int),
geneGeneDist(float[], float[], int),
makeTmpVectors(int)
private static final int addr1D(int x,
int y)
where:
x' = (x>y) ? x : y,
y' = (x>y) ? y : x.
x - coordinatey - coordinate
void calcGeneGeneDists(float[] ccDist1D,
int nClist,
int nEP)
ccDist1D - is 1D list emulating 2D list of Cijk distances for sample knClist - number of genes to computenEP - is the number of samples in ccDist1D listUtil.showMsg2(java.lang.String),
addr1D(int, int),
geneGeneDist(float[], float[], int)
static int findGeneWithLeastSumDistances(float[] ccDist1D,
int nClist)
ccDist1D - is 1D list emulating 2D list of Cijk distances for sample knClist - number of genes to computeaddr1D(int, int)void cleanup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||