Difference between revisions of "ANOVA"

(Loading and preparing the example data)
(Example of running ANOVA)
Line 107: Line 107:
  
 
=Example of running ANOVA=
 
=Example of running ANOVA=
==Loading and preparing the example data==
 
  
This example uses the [[Media:Bcell-100.zip|Bcell-100.zip]] dataset available and further described on the [[Download]] page.  Briefly, this dataset is composed of 100 Affymetrix HG-U95Av2 arrays on which various B-cell lines, both normal and cancerous, were analyzed.  Thus it explores a potentially wide variety of expression phenotypes.  In order to see the gene names associated with the probesets, one must also download the correct annotation file for this array from the Affymetrix Netaffx website (see the [[FAQ | geWorkbench FAQ]] for details on obtaining these files).
+
This example uses the [[Media:Bcell-100.zip|Bcell-100.zip]] dataset available and further described on the [[Download]] page.  Briefly, this dataset is composed of 100 Affymetrix HG-U95Av2 arrays on which various B-cell lines, both normal and cancerous, were analyzed.  Thus it explores a potentially wide variety of expression phenotypes.  
 +
    
 +
==Prerequisites==
 +
# Download and unzip the file [[Media:Bcell-100.zip|Bcell-100.zip]] to obtain the Bcell-100.exp dataset.
 +
# (Optional) Obtain the annotation file for the HG-U95Av2 array type from Affymetrix.  The name will be similar to "HG_U95Av2.na29.annot.csv", where na29 is the version number.  Loading the annotation file associates gene names and other information with the Affymetrix probeset IDs (see the [[FAQ | geWorkbench FAQ]] for details on obtaining these files).
 +
 
  
# Obtain the Bcell-100.exp dataset.  If downloaded as a zip file, unzip it to a convenient directory.
+
==Loading and preparing the example data==
# (Optional) Obtain the annotation file for the HG-U95Av2 array type from Affymetrix.  The name will be similar to "HG_U95Av2.na29.annot.csv", where na29 is the version number.
 
 
# Load the Bcell-100.exp dataset into geWorkbench as type "Affymetrix File Matrix".  (See [[Tutorial_-_Local_Data_FilesLoading | from File]]).
 
# Load the Bcell-100.exp dataset into geWorkbench as type "Affymetrix File Matrix".  (See [[Tutorial_-_Local_Data_FilesLoading | from File]]).
 
# When prompted, and if desired, load the annotation file.
 
# When prompted, and if desired, load the annotation file.
Line 118: Line 121:
  
 
==Choosing array groups==
 
==Choosing array groups==
 +
The Bcell-100 dataset comes with predefined sets of arrays. 
  
The Bcell-100 dataset comes with predefined sets of arrays.  In the Arrays/Phenotypes component (at lower left in the geWorkbench GUI), choose the group in the pulldown menu called "Class". Check the box beside each of the four sets of arrays to activate them as shown in the figure below.
+
# In the Arrays/Phenotypes component (at lower left in the geWorkbench GUI), choose the group in the pulldown menu called "Class".  
 +
# Check the box beside each of the four sets of arrays to activate them as shown in the figure below.
  
 
[[Image:T_ANOVA_array_groups.png]]
 
[[Image:T_ANOVA_array_groups.png]]
  
 
==Setting up the Parameters and running ANOVA==
 
==Setting up the Parameters and running ANOVA==
 
  
 
For this example we wil apply a relatively stringent multiple testing correction.
 
For this example we wil apply a relatively stringent multiple testing correction.
Line 134: Line 138:
  
 
[[Image:T_ANOVA_setup.png]]
 
[[Image:T_ANOVA_setup.png]]
 +
 +
The results are those shown in the figures in the previous section.

Revision as of 14:07, 6 October 2009

Home | Quick Start | Basics | Menu Bar | Preferences | Component Configuration Manager | Workspace | Information Panel | Local Data Files | File Formats | caArray | Array Sets | Marker Sets | Microarray Dataset Viewers | Filtering | Normalization | Tutorial Data | geWorkbench-web Tutorials

Analysis Framework | ANOVA | ARACNe | BLAST | Cellular Networks KnowledgeBase | CeRNA/Hermes Query | Classification (KNN, WV) | Color Mosaic | Consensus Clustering | Cytoscape | Cupid | DeMAND | Expression Value Distribution | Fold-Change | Gene Ontology Term Analysis | Gene Ontology Viewer | GenomeSpace | genSpace | Grid Services | GSEA | Hierarchical Clustering | IDEA | Jmol | K-Means Clustering | LINCS Query | Marker Annotations | MarkUs | Master Regulator Analysis | (MRA-FET Method) | (MRA-MARINa Method) | MatrixREDUCE | MINDy | Pattern Discovery | PCA | Promoter Analysis | Pudge | SAM | Sequence Retriever | SkyBase | SkyLine | SOM | SVM | T-Test | Viper Analysis | Volcano Plot


Overview

The geWorkbench ANOVA component utilizes a one-way analysis of variance calculation from TIGR's MEV package. At least three groups of arrays must be specified by defining and activating them in the Arrays/Phenotypes component. For each chosen marker the routine determines if, at the specified level of significance, any difference exists in expression values between any of the groups (the null hypothesis is that there is no difference between the groups). Several basic methods of multiple testing correction are offered. The analysis does not indicate between which groups the difference is found, only that one exists.

Those markers for which a significant difference is found are placed into a new set in the Markers component called "Significant Genes". The results are also display as a heat map in the Color Mosaic component.

ANOVA Parameters and Settings

  • ANOVA is found in the list of loaded analysis routines in the lower-right Commands quadrant of geWorkbench.


T ANOVA default settings.png

P-Value Estimation

F-Distribution

The F-distribution arises from the ratio of the variances of two normally distributed statistics (chi-squared distributions).

Permutation

This selection requires the number of permutations. The default value is 100.

Multiple testing corrections

The p-value can be used directly as a cutoff for determining significant genes, or it can be corrected.

Just Alpha

No correction is performed.

Standard Bonferroni

The cutoff value (alpha) is divided by the number of tests (genes) before being compared with the calculated p-values.

Adjusted Bonferroni

Implements the Holm-Bonferroni correction. For each successive P-value in an ordered list of P-values, the divisor for alpha is decremented by one and then the result compared with the P-value. The effect is to slightly reduce the stringency of the Bonferroni correction.

Westfall-Young Step Down

(This correction is only available when the permutation method is chosen for calculating p-values).


False Discovery Control

(This correction is only available when the permutation method is chosen for calculating p-values).

The user must select the false discoveries in terms of either

  • An upper limit on the number of false positives (markers falsely called as showing a significant difference), or
  • An upper limit on the proportion of false positives.

Note on saving settings

The False Discovery Control parameter fields will only have their values saved if they are actually selected. As they are controlled by radio buttons, only one field can be active at one time, and hence only at most one of those fields will be saved in any one set.

Services (Grid)

ANOVA can be run either locally within geWorkbench, or remotely as a grid job on caGrid. See the Grid Services section for further details on setting up a grid job.


Viewing ANOVA Results

When the ANOVA calculation completes, the result node is placed in the Project Folders component. When the result node is selected (highlighted) in the project panel, the results will be displayed in both a tabular form and in the form of a heatmap in the Color Mosaic component.


T ANOVA Saved Color Mosaic View.png

Also shown is a "snapshot" node, that is a static picture of the heat map, labeled "Color Mosaic View". It was produced by right-clicking on the Color Mosaic display (see below) and selecting "Take Snapshot".


Color Mosaic Viewer

The Color Mosaic view displays the results as a heat map, which uses a color spectrum to indicate the relative magnitudes of the expression measurements. The heat map is colored using the currently selected color scheme (Menu->Tools->Preferences->Visualization). A color bar at the bottom shows the range of the color display and its correlation with expression values.

Columns represent individual arrays, and each row represents a marker. The arrays are grouped by the array set to which they belong, with each set labeled at the top of the picture. The markers are initially sorted in order of the calculated p-value, from smallest to largest. Further details are available in the Color Mosaic tutorial.


T ANOVA ColorMosaic.png


Tabular Viewer

This Visual Area component displays a read-only spreadsheet view of the significant genes sorted by p-value in ascending order (from most significant to least significant).

Spreadsheet columns

  • Marker Name - Shows the gene name if an annotation file has been loaded, otherwise shows the probeset name.
  • F-statistic - the raw ANOVA score for each marker.
  • P-value - the probability of observing an F-statistic this large by chance alone, assuming the null hypothesis of no actual differences between sets of arrays.
  • Mean - the mean expression value for each group of arrays.
  • Std - the standard deviation for each group of arrays.

Controls

  • Display Preference - this button brings up a panel which controls which of the columns to display. The choices, described in the previous section, are F-statistic, p-value, mean, and standard deviation.
  • Export - Click on Export in the lower left of the visualization to export this table in .csv format. The export file will contain only the columns displayed.


Further customizing the spreadsheet

  • Resize columns by using the mouse to drag column boundaries.
  • Reorder columns in the details pane by using the mouse to drag a column heading to the left or right of its original position.
  • Sort the spreadsheet on a specific column by double clicking on its header. Succesive clicks will toggle between ascending order and descending order.


T ANOVA Tabular Viewer.png

Significant markers set

All markers which met the threshold p-value (alpha) cutoff are placed into the "Significant Genes" set in the Markers component. Such sets of markers can be used as the starting point for further characterization and analysis.

T ANOVA significant genes set.png



Example of running ANOVA

This example uses the Bcell-100.zip dataset available and further described on the Download page. Briefly, this dataset is composed of 100 Affymetrix HG-U95Av2 arrays on which various B-cell lines, both normal and cancerous, were analyzed. Thus it explores a potentially wide variety of expression phenotypes.

Prerequisites

  1. Download and unzip the file Bcell-100.zip to obtain the Bcell-100.exp dataset.
  2. (Optional) Obtain the annotation file for the HG-U95Av2 array type from Affymetrix. The name will be similar to "HG_U95Av2.na29.annot.csv", where na29 is the version number. Loading the annotation file associates gene names and other information with the Affymetrix probeset IDs (see the geWorkbench FAQ for details on obtaining these files).


Loading and preparing the example data

  1. Load the Bcell-100.exp dataset into geWorkbench as type "Affymetrix File Matrix". (See from File).
  2. When prompted, and if desired, load the annotation file.
  3. For this example, the data was subjected to quantile normalization followed by log2 normalization (See Filtering and Normalizing.

Choosing array groups

The Bcell-100 dataset comes with predefined sets of arrays.

  1. In the Arrays/Phenotypes component (at lower left in the geWorkbench GUI), choose the group in the pulldown menu called "Class".
  2. Check the box beside each of the four sets of arrays to activate them as shown in the figure below.

T ANOVA array groups.png

Setting up the Parameters and running ANOVA

For this example we wil apply a relatively stringent multiple testing correction.

  1. Leave the P-value method set to F-distribution.
  2. Set the P-Value Threshold (alpha) to 0.01.
  3. For the P-value correction choose Standard Bonferroni.
  4. Push the Analyze button.


T ANOVA setup.png

The results are those shown in the figures in the previous section.