mavolcanoplot

Create significance versus gene expression ratio (fold change) scatter plot of microarray data

Syntax

mavolcanoplot(DataX, DataY, PValues)
SigStructure = mavolcanoplot(DataX, DataY, PValues)

... mavolcanoplot(..., 'Labels', LabelsValue, ...)
... mavolcanoplot(..., 'LogTrans', LogTransValue, ...)
... mavolcanoplot(..., 'PCutoff', PCutoffValue, ...)
... mavolcanoplot(..., 'Foldchange', FoldchangeValue, ...)
... mavolcanoplot(..., 'PlotOnly', PlotOnlyValue, ...)

Arguments

DataX

Matrix or vector of gene expression values from a single experimental condition. If DataX is a matrix, each row is a gene, each column is a sample, and an average expression value is calculated for each gene.

    Note   If the values in DataX are natural scale, use the LogTrans property to convert them to log 2 scale.

DataY

Matrix or vector of gene expression values from a single experimental condition. If a matrix, each row is a gene, each column is a sample, and an average expression value is calculated for each gene.

    Note   If the values in DataY are natural scale, use the LogTrans property to convert them to log 2 scale.

PValues

Vector of p-values for each gene in data sets from two different experimental conditions.

LabelsValue

Cell array of labels (typically gene names or probe set IDs) for the data. After creating the plot, you can click a data point to display the label associated with it. If you do not provide a LabelsValue, data points are labeled with row numbers from DataX and DataY.

LogTransValue

Property to control the conversion of data in DataX and DataY from natural scale to log 2 scale. Enter true to convert data to log 2 scale, or false. Default is false, which assumes data is already log 2 scale.

PCutoffValue

Lets you specify a cutoff p-value to define data points that are statistically significant. This value is displayed graphically as a horizontal line on the plot. Default is 0.05, which is equivalent to 1.3010 on the –log10 (p-value) scale.

    Note   You can also change the p-value cutoff interactively after creating the plot.

FoldchangeValue

Lets you specify a ratio fold change to define data points that are differentially expressed. Default is 2, which corresponds to a ratio of 1 and –1 on a log2 (ratio) scale.

    Note   You can also change the fold change interactively after creating the plot.

PlotOnlyValue

Controls the display of the volcano plot without user interface components. Choices are true or false (default).

    Note   If you set the 'PlotOnly' property to true, you can still display labels for data points by clicking a data point, and you can still adjust vertical fold change lines and the horizontal p-value cutoff line by click-dragging the lines.

Return Values

SigStructureStructure containing information for genes that are considered to be both statistically significant (above the p-value cutoff) and significantly differentially expressed (outside of the fold change values).

Description

mavolcanoplot(DataX, DataY, PValues) creates a scatter plot of gene expression data, plotting significance versus fold change of gene expression ratios. It uses the average gene expression values from two data sets, DataX and DataY, for each gene in the data sets. It plots significance as the –log10 (p-value) from the vector, PValues. DataX and DataY can be vectors or matrices.

SigStructure = mavolcanoplot(DataX, DataY, PValues) returns a structure containing information for genes that are considered to be both statistically significant (above the p-value cutoff) and significantly differentially expressed (outside of the fold change values). The fields within SigStructure are sorted by p-value and include:

... mavolcanoplot(..., 'PropertyName', PropertyValue, ...) defines optional properties that use property name/value pairs in any order. These property name/value pairs are as follows:


... mavolcanoplot(..., 'Labels', LabelsValue, ...)
lets you provide a cell array of labels (typically gene names or probe set IDs) for the data. After creating the plot, you can click a data point to display the label associated with it. If you do not provide a LabelsValue, data points are labeled with row numbers from DataX and DataY.

... mavolcanoplot(..., 'LogTrans', LogTransValue, ...) controls the conversion of data from DataX and DataY to log2 scale. When LogTransValue is true, mavolcanoplot converts data from natural to log2 scale. Default is false, which assumes the data is already log2 scale.

... mavolcanoplot(..., 'PCutoff', PCutoffValue, ...) lets you specify a p-value cutoff to define data points that are statistically significant. This value displays graphically as a horizontal line on the plot. Default is 0.05, which is equivalent to 1.3010 on the –log10 (p-value) scale.

... mavolcanoplot(..., 'Foldchange', FoldchangeValue, ...) lets you specify a ratio fold change to define data points that are differentially expressed. Fold changes display graphically as two vertical lines on the plot. Default is 2, which corresponds to a ratio of 1 and –1 on a log2 (ratio) scale.

... mavolcanoplot(..., 'PlotOnly', PlotOnlyValue, ...) controls the display of the volcano plot without user interface components. Choices are true or false (default).

The volcano plot displays the following:

After you display the volcano scatter plot, you can interactively:

Examples

  1. Load a MAT-file, included with the Bioinformatics Toolbox™ software, which contains Affymetrix® data variables, including dependentData and independentData, two matrices of gene expression values from two experimental conditions.

    load prostatecancerexpdata
    
  2. Use the mattest function to calculate p-values for the gene expression values in the two matrices.

    pvalues = mattest(dependentData, independentData);
    
  3. Using the two matrices, the pvalues calculated by mattest, and the probesetIDs column vector of labels provided, use mavolcanoplot to create a significance versus gene expression ratio scatter plot of the microarray data from the two experimental conditions.

    mavolcanoplot(dependentData, independentData, pvalues,...
    'Labels', probesetIDs)
    
  4. View the volcano plot without the user interface components.

    mavolcanoplot(dependentData, independentData, pvalues,...
    'Labels', probesetIDs,'Plotonly', true)
    

The prostatecancerexpdata.mat file used in the previous example contains data from Best et al., 2005.

References

[1] Cui, X., Churchill, G.A. (2003). Statistical tests for differential expression in cDNA microarray experiments. Genome Biology 4, 210.

[2] Best, C.J.M., Gillespie, J.W., Yi, Y., Chandramouli, G.V.R., Perlmutter, M.A., Gathright, Y., Erickson, H.S., Georgevich, L., Tangrea, M.A., Duray, P.H., Gonzalez, S., Velasco, A., Linehan, W.M., Matusik, R.J., Price, D.K., Figg, W.D., Emmert-Buck, M.R., and Chuaqui, R.F. (2005). Molecular alterations in primary prostate cancer after androgen ablation therapy. Clinical Cancer Research 11, 6823–6834.

See Also

Bioinformatics Toolbox functions: maboxplot, maimage, mainvarsetnorm, mairplot, maloglog, malowess, manorm, mapcaplot, mattest

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS