|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MJAbase | +--MJAsample
MAExplorer Open Java API class to access MJAsample methods and data structures. Access get and put single sample top-level data.
List of methods available to Plugin-writers
setSampleNameMethod() - sets sample name method to name domain to be used. lookupSampleName() - Return sample number by SampleID (free-text) name lookupSampleNameByDBfileName() - Return sample number by sample DB file name lookupSampleNameByDBfileID() - lookup sample number by sample databaseFileID lookupSampleByFreeTextName() - lookup sample number by SampleID (free-text) name. getSampleIDbySampleNbr() - lookup the sample ID name by sample number getProjectNameBySampleNbr() - lookup the sample project name by sample number getFullSampleTextBySampleNbr() - lookup full sample text description by sample number getRawIntensityQuantDataList() - get raw spot intensity quant data list getRawBkgrdQuantDataList() - get raw spot background quant data getQualCheckQuantDataList() - get spot QualCheck good spot data list getCorrCoefQuantDataList() - get spot intensity correlation coeff. data getXYdataList() - get list of XY coordinates data for sample getQualCheckList() - get list of QualCheck data for sample getSampleScaleFactors() - get list of a sample's scale factors getSampleF1F2Extrema() - get list of sample's F1F2 intensity extrema setSampleF1F2Extrema() - set normalized list of sample's F1F2 intensity extrema setSampleCurScaledExtrema() - set sample's current normalized scaled intensity extrema. getSampleTypeFlags() - get list of a sample's property flags getSampleTotHistStats() - get list of a sample's total histogram statistics getSampleCalibDNAdata() - get list of a Sample calibration DNA data calcIntensityScaleExtrema() - compute intensity scale extrema for Sample. calcMeanCalibrationDNA() - compute (mean,StdDev) gene for Sample calcMeanUseNormGeneSet() - compute (mean,StdDev) normalization gene set swapCy5Cy3AndReCalcStats() - swap Cy3 and Cy5, recalculate statistics getSamplesDataVector() - get sample data for sample indexes for gene mid.
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/.
for other Sample Histogram methods
Method Summary | |
boolean |
calcIntensityScaleExtrema(int sampleNbr)
calcIntensityScaleExtrema() - compute intensity scale extrema for Sample. |
boolean |
calcMeanCalibrationDNA(int sampleNbr)
calcMeanCalibrationDNA() - compute (mean,StdDev) gene for Sample for calibration cDNA for the current normalization. |
boolean |
calcMeanUseNormGeneSet(int sampleNbr)
calcMeanUseNormGeneSet() - compute (mean,StdDev) normalization gene set for Sample. |
float[] |
getCorrCoefQuantDataList(int sampleNbr)
getCorrCoefQuantDataList() - get spot intensity correlation coefficient data for the given sample. |
java.lang.String |
getFullSampleTextBySampleNbr(int sampleNbr)
getFullSampleTextBySampleNbr() - lookup the full sample text description by sample number. |
java.lang.String |
getProjectNameBySampleNbr(int sampleNbr)
getProjectNameBySampleNbr() - lookup the sample project name by sample number. |
float[] |
getQualCheckList(int sampleNbr)
getQualCheckList() - get list of QualCheck data for sample number. |
float[] |
getQualCheckQuantDataList(int sampleNbr)
getQualCheckQuantDataList() - get spot QualCheck good spot data list for the given sample. |
float[] |
getRawBkgrdQuantDataList(int sampleNbr)
getRawBkgrdQuantDataList() - get raw spot background quant data for the given sample. |
float[] |
getRawIntensityQuantDataList(int sampleNbr)
getRawIntensityQuantDataList() - get raw spot intensity quant data list for the given sample. |
java.util.Hashtable |
getRawSampleData(int sampleNbr)
getRawSampleData() - get list of a sample's total histogram statistics. |
java.util.Hashtable |
getSampleCalibDNAdata(int sampleNbr,
boolean recalcCalDNAcalibFlag)
getSampleCalibDNAdata() - get list of a Sample calibration DNA data this sample. |
java.util.Hashtable |
getSampleF1F2Extrema(int sampleNbr)
getSampleF1F2Extrema() - get list of sample's normalized F1F2 intensity extrema and 1st order histogram statistics. |
java.lang.String |
getSampleIDbySampleNbr(int sampleNbr)
getSampleIDbySampleNbr() - lookup the sample ID name by sample number. |
boolean |
getSamplesDataVector(float[] sampleData,
int[] samplesIndex,
int mid)
getSamplesDataVector() - get sample data for sample indexes for gene mid. |
java.util.Hashtable |
getSampleTotHistStats(int sampleNbr)
getSampleTotHistStats() - get list of a sample's total histogram statistics. |
java.util.Hashtable |
getSampleTypeFlags(int sampleNbr)
|
java.util.Hashtable |
getScaleFactors(int sampleNbr)
getSampleScaleFactors() - get list of a sample's scale factors. |
java.awt.Point[] |
getXYdataList(int sampleNbr)
getXYdataList() - get list of XY coordinates data for sample. |
int |
lookupSampleByFreeTextName(java.lang.String sampleFreeTextName,
java.lang.String condName)
lookupSampleByFreeTextName() - lookup sample number by SampleID (free-text) name. |
int |
lookupSampleName(java.lang.String databaseFileID,
java.lang.String condName)
lookupSampleName() - lookup sample number by sample databaseFileID. |
int |
lookupSampleNameByDBfileID(java.lang.String databaseFileID,
java.lang.String condName)
lookupSampleNameByDBfileID() - lookup sample number by sample databaseFileID. |
int |
lookupSampleNameByDBfileName(java.lang.String sampleDBfileName,
java.lang.String condName)
lookupSampleNameByDBfileName() - lookup sample number by sample DB file name. |
void |
setSampleCurScaledExtrema(int sampleNbr,
float maxDataS,
float minDataS,
float maxRawS,
float minRawS)
setSampleCurScaledExtrema() - set sample's current normalized scaled intensity extrema. |
void |
setSampleF1F2Extrema(int sampleNbr,
float minDataF1,
float minDataF2,
float maxDataF1,
float maxDataF2)
setSampleF1F2Extrema() - set list of sample's normalized F1F2 intensity extrema. |
static boolean |
setSampleNameMethod(int nameMethodToUse)
setSampleNameMethod() - sets the sample name method to the name domain to be used. |
boolean |
swapCy5Cy3AndReCalcStats(int sampleNbr)
swapCy5Cy3AndReCalcStats() - swap Cy3 and Cy5, recalculate statistics for sample. |
Methods inherited from class MJAbase |
cvtHashtable2SimpleTable, cvtTable2Hashtable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final boolean setSampleNameMethod(int nameMethodToUse)
nameMethodToUse
- may be NAME_METHOD_DB_FILE_NAME, NAME_METHOD_DB_FILE_ID,
or NAME_METHOD_DB_SAMPLE_IDpublic final int lookupSampleName(java.lang.String databaseFileID, java.lang.String condName)
databaseFileID
- sample file name to search for. Note: don't include
the file extension in the name.condName
- name of conditionpublic final int lookupSampleNameByDBfileName(java.lang.String sampleDBfileName, java.lang.String condName)
sampleDBfileName
- sample file name to search for. Note: don't include
the file extension in the name.condName
- name of conditionpublic final int lookupSampleNameByDBfileID(java.lang.String databaseFileID, java.lang.String condName)
databaseFileID
- sample file name to search for. Note: don't include
the file extension in the name.condName
- name of conditionpublic final int lookupSampleByFreeTextName(java.lang.String sampleFreeTextName, java.lang.String condName)
sampleFreeTextName
- sample free-text name to search for samplecondName
- name of conditionpublic final java.lang.String getSampleIDbySampleNbr(int sampleNbr)
sampleNbr
- is the number of the sample to lookuppublic final java.lang.String getProjectNameBySampleNbr(int sampleNbr)
sampleNbr
- is the number of the sample to lookuppublic final java.lang.String getFullSampleTextBySampleNbr(int sampleNbr)
sampleNbr
- is the number of the sample to lookuppublic final float[] getRawIntensityQuantDataList(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0public final float[] getRawBkgrdQuantDataList(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0public final float[] getQualCheckQuantDataList(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0public final float[] getCorrCoefQuantDataList(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0public final java.awt.Point[] getXYdataList(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0public final float[] getQualCheckList(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0public final java.util.Hashtable getScaleFactors(int sampleNbr)
The Hashtable list returned is defined as: Name - Value "ratioMedianScale" - float may be set if Cy3/Cy5 median scale correction "ratioMedianBkgdScale" - float may be set if Cy3/Cy5 median background scale correction "stdDevUseGeneSet" - float StdDev 'User Filter Gene Set' intensity "meanUseGeneSet" - float mean 'User Filter Gene Set' intensity "scaleUseGeneSet" - float scale factor for 'User Filter Gene set' "scaleUseGeneSetTo65K" - float scale factor for 'User Filter Gene Set' but max for all HPs is 65K "stdDevCalDNA" - float StdDev 'calibration DNA' intensity "meanCalDNA" - float mean 'calibration DNA' intensity "scaleCalDNA" - float scale factor for scaling by 'calibration DNA' intensity "scaleCalDNAto65K" - float scale factor for scaling by 'calibration DNA' intensity, but max for all HPs is 65K "normFactor" - float normalization factor for all intensity data so can compare intensity between HPs
sampleNbr
- sample number to use, else current HP sample if 0null
if not found or error.calcIntensityScaleExtrema(int)
public final java.util.Hashtable getSampleF1F2Extrema(int sampleNbr)
The Hashtable list returned is defined as: Name - Value --- normalized intensity data ----- "minDataF1" - float minimum intensity data for F1 channel "minDataF2" - float minimum intensity data for F2 channel "maxDataF1" - float maximum intensity data for F1 channel "maxDataF2" - float maximum intensity data for F2 channel "medianF1" - float median intensity of F1 channel data "medianF2" - float median intensity of F2 channel data "medianF1Bkgd" - float median background intensity of F1 channel data "medianF2Bkgd" - float median background intensity of F2 channel data --- Raw intensity data ----- "minRI" - float min raw intensity "maxRI" - float max raw intensity "minRI1" - float min raw intensity F1 (Cy3) "maxRI1" - float max raw intensity F1 (Cy3) "minRI2" - float min raw intensity F2 (Cy5) "maxRI2" - float max raw intensity F2 (Cy5) "minRatioRI" - float min raw intensity ratio F1/F2 "maxRatioRI" - float max raw intensity ratio F1/F2
sampleNbr
- sample number to use, else current HP sample if 0null
if not found or error.public final void setSampleF1F2Extrema(int sampleNbr, float minDataF1, float minDataF2, float maxDataF1, float maxDataF2)
sampleNbr
- sample number to use, else current HP sample if 0minDataF1
- is minimum normalized data for F1 channelminDataF2
- is minimum normalized data for F1 channelmaxDataF1
- is maximum normalized data for F1 channelmaxDataF2
- is maximum normalized data for F2 channelpublic final void setSampleCurScaledExtrema(int sampleNbr, float maxDataS, float minDataS, float maxRawS, float minRawS)
sampleNbr
- sample number to use, else current HP sample if 0maxDataS
- is current norm: scaled max dataminDataS
- is current norm: scaled min datamaxRawS
- is current norm: scaled maxRaw dataminRawS
- is current norm: scaled minRaw datapublic final java.util.Hashtable getSampleTypeFlags(int sampleNbr)
public final java.util.Hashtable getRawSampleData(int sampleNbr)
The Hashtable list returned is defined as: Name - Value "scaleToMaxIV" - float total array: maxFV/maxRI scale factor to compute the maximum range "maxFV" - float maximum and fraction "minRI" - float min raw intensity "maxRI" - float max raw intensity "minRI1" - float min raw intensity F1 (Cy3) "maxRI1" - float max raw intensity F1 (Cy3) "minRI2" - float min raw intensity F2 (Cy5) "maxRI2" - float max raw intensity F2 (Cy5) "minRaw" - float min raw intensity (@) "maxRaw" - float max raw intensity (@) "minRatioRI" - float min Ratio of raw intensity "maxRatioRI" - float max Ratio of raw intensity "xCmin" - int min X coord mapped to MAE coord "yCmin" - int min Y coord mapped to MAE coord "xCmax" - int max X coord mapped to MAE coord "yCmax" - int max Y coord mapped to MAE coord
sampleNbr
- sample number to use, else current HP sample if 0null
if not found or error, else return list.public final java.util.Hashtable getSampleTotHistStats(int sampleNbr)
The Hashtable list returned is defined as: Name - Value "minHistData" - float total array: min hist data value "maxHistData" - float total array: max hist data value "mnHPri" - float total array: rawIntens mean, all genes in HP sample without background "sdHPri" - float total array: rawIntens StdDev, all genes in HP sample without background "madHPri" - float total array: rawIntens meanAbsDev, all genes in HP sample without background "mnHPri1" - float total array: rawIntens f1 mean, all genes in HP sample without background "sdHPri1" - float total array: rawIntens f1 StdDev, all genes in HP sample without background "mnHPri2" - float total array: rawIntens f2 mean, all genes in HP sample without background "sdHPri2" - float total array: rawIntens f2 StdDev, all genes in HP sample without background "scaleToMaxIV" - float total array: maxFV/maxRI scale factor to compute the maximum range "maxFV" - float maximum and fractions of dynamic range "logMeanRI" - float total array: std dev of log of means "logStdDevRI" - float total array: std dev of log of means "logMeanAbsDevRI" - float total array: Filter hist: log of mean absolute deviation raw intensity "logMaxRI" - float total array: log of maxRI "logMinRI" - float total array: log of minRI "medianRI" - float median raw intensity "modeRI" - float mode raw intensity "minRI" - float min raw intensity "maxRI" - float max raw intensity "minRI1" - float min raw intensity F1 (Cy3) "maxRI1" - float max raw intensity F1 (Cy3) "minRI2" - float min raw intensity F2 (Cy5) "maxRI2" - float max raw intensity F2 (Cy5) "minRaw" - float min raw intensity (@) "maxRaw" - float max raw intensity (@) "deltaHistBin" - float delta Hist Bin (bin width) "minRatioRI" - float min Ratio of raw intensity "maxRatioRI" - float max Ratio of raw intensity "logMinRatioRI" - float log minRatioRI "logMaxRatioRI" - float log maxRatioRI "logRange" - float log ratio range [Rmin:Rmax] "logDeltaBin" - float (MAX_INTENSITY/logRange) "logMiddle" - float -logMinRatioRI for finding RI==1.0 "xCmin" - int min X coord mapped to MAE coord "yCmin" - int min Y coord mapped to MAE coord "xCmax" - int max X coord mapped to MAE coord "yCmax" - int max Y coord mapped to MAE coord
sampleNbr
- sample number to use, else current HP sample if 0null
if not found or error, else return list.public final java.util.Hashtable getSampleCalibDNAdata(int sampleNbr, boolean recalcCalDNAcalibFlag)
The Hashtable list returned is defined as: Name - Value "sampleNbr" - int sample number "meanCalDNA" - float mean of calibration DNA "stdDevCalDNA" - float Std-Dev of calibration DNA "scaleCalDNA" - float scale factor for calibration DNA "scaleUseGeneSet" - float scale factor for 'Use Gene Set' "scaleCalDNAto65K" - float scale factor for calibration DNA to 65K
sampleNbr
- sample number to use, else current HP sample if 0recalcCalDNAcalibFlag
- recompute calibration before get datanull
if not found or error, else return list.public final boolean calcIntensityScaleExtrema(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0false
if problems.public final boolean calcMeanCalibrationDNA(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0false
if problems.public final boolean calcMeanUseNormGeneSet(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0false
if method was not found or method failed,
otherwise the flag returned by the method.public final boolean swapCy5Cy3AndReCalcStats(int sampleNbr)
sampleNbr
- sample number to use, else current HP sample if 0false
if problems.public final boolean getSamplesDataVector(float[] sampleData, int[] samplesIndex, int mid)
sampleData
- - array to return samples datasamplesIndex
- - list of sample indices [1:N] (not [0:N-1] to lookup datamid
- gene to lookup
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |