|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MAEPlugin.MAEPlugin | +--MAEPlugin.CheckBoxMenuPlugin | +--MAEPlugin.analysis.AnalysisPlugin | +--MAEPlugin.analysis.NormalizationPlugin
This class extends the analysis MAEPlugin base class to implement the Normalization base class. The "active normalization" is a static reference that all Normalization classes share. Whichever one is active will be the one used. Created on September 7, 2001, 5:46 PM
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/.
Field Summary | |
protected static Normalization |
activeNormalization
Pointer to the current active Normalization object. |
protected java.lang.Object |
sample
|
Fields inherited from class MAEPlugin.MAEPlugin |
DBUG_MAEP, jarResources, registryMaxSize |
Fields inherited from interface MAEPlugin.PluginStub |
PLUGIN_VERSION |
Constructor Summary | |
NormalizationPlugin()
NormalizationPlugin() - Default Constructor puts default menu name in menu. |
|
NormalizationPlugin(java.lang.String menuLabel)
NormalizationPlugin() - Default Constructor puts menu name in menu. |
|
NormalizationPlugin(java.lang.String menuLabel,
java.lang.String pluginFileName)
NormalizationPlugin() - Default Constructor puts menu name in menu and file name. |
Method Summary | |
abstract float[] |
calcIntensityScaleExtrema(float maxRI,
float minRI,
float maxRaw,
float minRaw,
int sampleNbr)
calcIntensityScaleExtrema() - compute scaled Intensity upper and lower limits of raw data for each sample. |
abstract void |
close(boolean preserveDataStructuresFlag)
close() - close the plugin |
static void |
disableNormalizationPlugin()
disableNormalizationPlugin() - clear activeNormalization state. |
abstract boolean |
finishPipeline(int optArg)
finishPipeline() - finish filter at end of normalization of all genes (if required). |
static Normalization |
getActiveNormalization()
getActiveNormalization() - Bean-style method for getting the activeNormalization. |
static boolean |
getNormalizationState()
getNormalizationState() - Static method for using testing getActiveNormalization(). |
java.lang.Object |
getSample()
getSample() - used to Get the primary sample, to get the variables |
void |
pluginHalt()
pluginHalt() - stop the plugin |
void |
pluginMain()
pluginMain() is the method activated when end-users check a checkbox API. |
abstract void |
recalcNormalizationExtrema()
recalcNormalizationExtrema() - set the extreama for all samples for this plugin |
abstract boolean |
resetPipeline(int optArg)
resetPipeline() - reset filter at start of data Normalization. |
abstract float |
scaleIntensityData(float rawData)
scaleIntensityData() - scale raw intensity data as fct of normalization mode. |
abstract float |
scaleIntensityData(float rawIntensity,
float rawBkgrd,
int mid,
int gid,
int sampleIdx)
scaleIntensityData() - the gene normalization operating on gene mid for sampleIdx where the data is ether extracted here or from the resetPipeline pre-analysis. |
abstract float |
scaleIntensityData(float rawData,
int mid,
int gid,
int sampleNbr)
scaleIntensityData() - scale raw intensity data as fct of normalization mode. |
void |
setActiveNormalization(Normalization obj)
setActiveNormalization() - Bean-style method for setting the activeNormalization. |
void |
setSample(java.lang.Object obj)
setSample() - method used to set primary variables from the sample. |
abstract void |
updateCurGene(int mid)
updateCurGene() - abstract method end-users must implement to use the API. |
abstract void |
updateFilter()
updateFilter() - abstract method end-users must implement to use the API. |
abstract void |
updateLabels()
updateLabels() - abstract method end-users must implement to use the API. |
abstract void |
updateSlider()
updateSlider() - abstract method end-users must implement to use the API. |
Methods inherited from class MAEPlugin.CheckBoxMenuPlugin |
getState, itemStateChanged, setState |
Methods inherited from class MAEPlugin.MAEPlugin |
getFlag, getInstance, getMAEStub, getMenuHook, getMenuInsertionPointName, getMenuItem, getNumberPlugins, getPluginDescription, getPluginFileName, getPluginName, getPlugins, menuActivated, pluginInit, removePlugin, setFlag, setJarResources, setMAEStub, setMenuHook, setMenuInsertionPointName, setMenuItem, setMenuLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface MAEPlugin.Normalization |
getState, setState |
Field Detail |
protected static Normalization activeNormalization
protected java.lang.Object sample
Constructor Detail |
public NormalizationPlugin()
public NormalizationPlugin(java.lang.String menuLabel)
menuLabel
- is the name of the plugin for use as the menu itempublic NormalizationPlugin(java.lang.String menuLabel, java.lang.String pluginFileName)
menuLabel
- is the name of the plugin for use as the menu itempluginFileName
- name of the plugin without the ".jar"Method Detail |
public final void pluginMain()
pluginMain
in class CheckBoxMenuPlugin
public static final void disableNormalizationPlugin()
public static final boolean getNormalizationState()
public static final Normalization getActiveNormalization()
public final void setActiveNormalization(Normalization obj)
obj
- is Normalization plugin objectpublic void pluginHalt()
pluginHalt
in class MAEPlugin
public final java.lang.Object getSample()
getSample
in interface Normalization
public final void setSample(java.lang.Object obj)
setSample
in interface Normalization
obj
- is the NormalizationPlugin sample objectpublic abstract boolean resetPipeline(int optArg)
resetPipeline
in interface Normalization
optArg
- - optional argumentpublic abstract boolean finishPipeline(int optArg)
finishPipeline
in interface Normalization
optArg
- - optional argumentpublic abstract float[] calcIntensityScaleExtrema(float maxRI, float minRI, float maxRaw, float minRaw, int sampleNbr)
calcIntensityScaleExtrema
in interface Normalization
maxRI
- maximum raw ratio intensityminRI
- minimum raw ratio intensitymaxRaw
- maximum raw intensity max(rawF1,rawF2)minRaw
- minimum raw intensity min(rawF1,rawF2)sampleNbr
- for the sample sample number in the range [1:maxSamples]element 0 = maxDataS element 1 = minDataS element 2 = maxRawS element 3 = minRawS
public abstract float scaleIntensityData(float rawData)
scaleIntensityData
in interface Normalization
rawData
- is unnormalized data for spotpublic abstract float scaleIntensityData(float rawData, int mid, int gid, int sampleNbr)
scaleIntensityData
in interface Normalization
rawData
- is unnormalized data for spotmid
- is MID of the spotgid
- is GID of the spotsampleNbr
- for the sample arraypublic abstract float scaleIntensityData(float rawIntensity, float rawBkgrd, int mid, int gid, int sampleIdx)
scaleIntensityData
in interface Normalization
rawIntensity
- is intensity value to be normalizedrawBkgrd
- is background intensity to be used in normalization
if the use Background flag is set.mid
- is the Master Gene ID to test if not -1 and the gene existsgid
- is the spot Geometry Gene Index to test if not -1 and the spot existssampleIdx
- is the HybridSample index number for single sample HP-X or HP-Y.
For Cy3 vs Cy5 mode, it is 0 for Cy3 (F1), and 1 for Cy5 (F2).
For HP-X 'set' vs HP-Y 'set' mode,
it is 0 for HP-X 'set', and 1 for HP-Y 'set'public abstract void recalcNormalizationExtrema()
recalcNormalizationExtrema
in interface Normalization
public abstract void updateCurGene(int mid)
mid
- is the MID (Master Gene ID) that is the new current gene.public abstract void updateFilter()
public abstract void updateSlider()
public abstract void updateLabels()
public abstract void close(boolean preserveDataStructuresFlag)
preserveDataStructuresFlag
- to save data structures
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |