|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--Filter
Class Filter.java - Filter the current ProtPlot data. This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government and Djamel Medjahed (SAIC-Frederick). 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 work was derived from MAExplorer under the Mozilla 1.1 Open Source Public License by Peter Lemkin of the National Cancer Institute, an agency of the United States Government subject to the limitations noted in the accompanying LEGAL file. See licence info on http://maexplorer.sourceforge.org/
| Field Summary | |
double |
cvEPdata
computed Coefficient of variation all EP set data for current protein |
double |
cvXdata
computed Coefficient of variation all X set data for current protein |
double |
cvYdata
computed Coefficient of variation all Y set data for current protein |
boolean |
didDataSetupFlag
flag: set by setupData() if successful |
boolean |
didStatisticsFlag
flag: set by calcPrimaryStatisticss() if successful |
boolean |
doingXYscatterPlotFlag
set if doing display X vs Y in ratio mode |
private DrawProtScatterPlot |
dwSP
instance of DrawProtScatterPlot |
double[] |
epData
quant data for all EP (set) members |
double |
mnEPdata
computed mean intensity EP set data for current protein |
double |
mnXdata
computed mean intensity X set data for current protein |
double |
mnYdata
computed mean intensity Y set data for current protein |
int |
nEP
# of EP set members after setup |
int |
nEPsamplesPassedMinProteins
Compute the min # of EP set samples passing > S proteins/Sample test |
int |
nSamplesPassedMinProteins
Compute the min # of X&Y or EP set samples passing > S proteins/Sample test |
int |
nX
# of X set members after setup |
int |
nXsamplesPassedMinProteins
Compute the min # of X set samples passing > S proteins/Sample test |
int |
nY
# of Y set members after setup |
int |
nYsamplesPassedMinProteins
Compute the min # of Y set samples passing > S proteins/Sample test |
boolean |
passedDisplayXYRangeTest
set if doing display X vs Y in ratio mode AND (exprX,exprY) in X and Y range of scatterplot |
int |
passedEPminSamplesCtr
counters for missing samples protein test for EP set |
int |
passedExprCtr
counters Expr counter |
int |
passedFamilyCtr
counters Family counter |
int |
passedFilterCtr
counters Filter counter |
int |
passedKStestCtr
counters for KS-test |
int |
passedMaxMWsizeCtr
counters max MW size counter |
boolean |
passedMissingProteins
Combined flag for both X & Y or EP missing proteins tests |
int |
passedMwPIRangeCtr
counter for test of (pM.pI,pM.mw) within pI and Mw scroller range limits |
boolean |
passedMwPIRangeTest
Flag that tests if (pM.pI,pM.mw) is within the pI and Mw scroller range limits |
int |
passedNsamplesCtr
counters N samples counter |
int |
passedRatioCtr
counters Ratio counter |
int |
passedSavedClusterCtr
counter for proteins in saved Cluster set of proteins |
int |
passedSavedFilterCtr
counter for proteins in saved Filter set of proteins |
int |
passedTissueCtr
counters Tissue counter |
int |
passedTtestCtr
counters for t-test |
int |
passedXYmissingProteinsCtr
counter for missing X and Y set protein test |
private ProtPlot |
prp
instance of ProtPlot |
float |
pValue
computed Computed pValue when use the t-Test for current protein |
float |
ratioXYsets
computed ratio of mnXdata/mnYdata if mnYdata NEQ 0 for current protein |
private StatisticsPRP |
stat
instance of StatisticsPRP |
double |
stdDevEPdata
computed std deviation EP set data for current protein |
double |
stdDevXdata
computed std deviation X set data for current protein |
double |
stdDevYdata
computed std deviation Y set data for current protein |
private UtilPRP |
util
instance of UtilPRP |
double[] |
xData
quant data for all X (set) members. |
double[] |
xDataP1
quant data for all X (set) members. |
double[] |
yData
quant data for all Y (set) members. |
double[] |
yDataP1
quant data for all Y (set) members. |
| Constructor Summary | |
Filter(ProtPlot prp)
Filter() - constructor |
|
| Method Summary | |
boolean |
allocLocalEPdataArrays(boolean allocAnywaysFlag)
allocLocalEPdataArrays() - setup or change EP sets array allocations used by Filter |
boolean |
allocLocalXYdataArrays(boolean allocAnywaysFlag)
allocLocalXYdataArrays() - setup or change X, Y, or EP sets array allocations used by Filter |
(package private) boolean |
calcEPstatistics()
calcEPstatistics() - compute primary statistics for EP set data in epData[0:nEP-1]. |
(package private) boolean |
calcXYstatistics()
calcXYstatistics() - compute primary statistics for X and Y sets for current x(y)Data[]. |
boolean |
checkSamplesFilter(int mPid)
checkSamplesFilter() - check Proteins (pX,pY) to see if it passed filter. |
(package private) java.lang.String |
getExtraFilterData(int mPid)
getExtraFilterData() - get extra Filter data from t-Test, KS-test etc. |
java.lang.String[] |
getSampleListBySubstring(java.lang.String sMatch)
getSampleListBySubstring() - return a list of sample names by substring matching |
int |
resetFilterCounters()
resetFilterCounters() - reset the filter counters |
void |
saveFilter()
saveFilter() - save current Filtered proteins into prp.savedFilterMPIDs[] |
(package private) boolean |
setupLocalEPsetData(int mPid,
boolean allocAnywaysFlag)
setupLocalEPsetData() - setup local EP sets data arrays for pM |
(package private) boolean |
setupLocalXYsetData(int mPid,
boolean allocAnywaysFlag)
setupLocalXYsetData() - setup local X, and Y sets data arrays for pM |
boolean |
setupXYlabels()
setupXYlabels() - set the XY labels based on samples selected. |
boolean |
test_XYsets_KS_Test(int mPid,
float pValueThr,
boolean getDataFlag)
test_XYsets_KS_Test() - test if X and Y sets pass Kolmogorov-Smirnov Test with a pValue better than pValueThr. |
boolean |
test_XYsets_t_Test(int mPid,
float pValueThr,
boolean getDataFlag)
test_XYsets_t_Test() - test if X and Y sets pass the t-Test with a pValue better than pValueThr. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private ProtPlot prp
private StatisticsPRP stat
private UtilPRP util
private DrawProtScatterPlot dwSP
public boolean didDataSetupFlag
public boolean didStatisticsFlag
public int nX
public int nY
public int nEP
public double[] xData
public double[] xDataP1
public double[] yData
public double[] yDataP1
public double[] epData
public double mnXdata
public double mnYdata
public double mnEPdata
public float ratioXYsets
public double stdDevXdata
public double stdDevYdata
public double stdDevEPdata
public double cvXdata
public double cvYdata
public double cvEPdata
public float pValue
public int nSamplesPassedMinProteins
public int nXsamplesPassedMinProteins
public int nYsamplesPassedMinProteins
public int nEPsamplesPassedMinProteins
public boolean passedMissingProteins
public boolean passedMwPIRangeTest
public boolean doingXYscatterPlotFlag
public boolean passedDisplayXYRangeTest
public int passedSavedClusterCtr
public int passedSavedFilterCtr
public int passedMwPIRangeCtr
public int passedXYmissingProteinsCtr
public int passedEPminSamplesCtr
public int passedTtestCtr
public int passedKStestCtr
public int passedMaxMWsizeCtr
public int passedNsamplesCtr
public int passedRatioCtr
public int passedExprCtr
public int passedFamilyCtr
public int passedTissueCtr
public int passedFilterCtr
| Constructor Detail |
public Filter(ProtPlot prp)
prp - is instance of ProtPlot| Method Detail |
public int resetFilterCounters()
public boolean checkSamplesFilter(int mPid)
The data filter takes the intersection of the following filters.
By definition, a filter that is disabled is true so the intersection
ignores it. Note the Ratio test and the Expression test are mutually
exclusive.
passed Ratio X/Y range (based on ratio, ratio-range and
inside/outside flag) test
passed Expression range test
passed t-test for X and Y sets
passed minimum number of samples for both X and Y set if used
else EP list test
passed Tissue membership test
passed Family membership test
mPid - is the master protein id to checkdataMustExistFlag - makes sure that data exists for ratio data
(X or Y or both X and Y exists)public java.lang.String[] getSampleListBySubstring(java.lang.String sMatch)
sMatch - is the substring to match (e.g " normal" or " cancer")public boolean allocLocalXYdataArrays(boolean allocAnywaysFlag)
allocAnywaysFlag - to the X and Y sample index listspublic boolean allocLocalEPdataArrays(boolean allocAnywaysFlag)
allocAnywaysFlag - to recalculate the EP sample index list
public boolean test_XYsets_t_Test(int mPid,
float pValueThr,
boolean getDataFlag)
mPid - is the Master Protein Id to testpValueThr - is the p-value threshold to usegetDataFlag - get the data, else assume that precalculatedStatisticsPRP.calcTandPvalues(int, int, double, double, double, double)
public boolean test_XYsets_KS_Test(int mPid,
float pValueThr,
boolean getDataFlag)
mPid - is the Master Protein Id to testpValueThr - is the p-value threshold to usegetDataFlag - get the data, else assume that precalculatedStatisticsPRP.calcTandPvalues(int, int, double, double, double, double)
boolean setupLocalXYsetData(int mPid,
boolean allocAnywaysFlag)
mPid - is the Master Protein ID if not -1allocAnywaysFlag - allocate anyways even if < 2 samples for X or Y setallocLocalXYdataArrays(boolean)java.lang.String getExtraFilterData(int mPid)
mid - for protein to get extra info
boolean setupLocalEPsetData(int mPid,
boolean allocAnywaysFlag)
mPid - is the Master Protein ID if not -1allocAnywaysFlag - allocate anyways even if < 2 samples for RP setallocLocalEPdataArrays(boolean)boolean calcXYstatistics()
(mnXdata, mnYdata) - mean intensity X, Y
(cvXdata,cvYdata) - Coeff. of variation all X, Y
(stdDevXdata,stdDevYdata) - std deviation intensity X, Y
allowAnySizeNflag - allow any size nX or NYboolean calcEPstatistics()
mnEPdata - mean intensity of epData[0:nEP-1].
cvEPdata - Coeff. of variation all data epData[0:nEP-1].
stdDevEPdata - std deviation of epData[0:nEP-1].
public boolean setupXYlabels()
UtilPRP.cvf2s(float, int)public void saveFilter()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||