www.gusucode.com > bioinfo 案例源码程序 matlab代码 > bioinfo/CreatePCAPlotOfMicroarrayDataExample.m

    %% Create Principal Component Analysis (PCA) Plot of Microarray Data
% This example shows how to create a PCA plot of yeast microarray data.

% Copyright 2015 The MathWorks, Inc.


%%
% This example uses data from an experiment (DeRisi et al., 1997) that used
% DNA microarrays to study temporal gene expression of almost all genes in
% Saccharomyces cerevisiae (yeast) during the metabolic shift from
% fermentation to respiration. Expression levels were measured at seven
% time points during the diauxic shift.

%%
% Load the MAT-file, provided with Bioinformatics Toolbox(TM), that contains
% filtered yeast microarray data.
load filteredyeastdata

%%
% This MAT-file includes three variables: 
% 
% * yeastvalues - A matrix of gene expression data from Saccharomyces
% cerevisiae (yeast) during the metabolic shift from fermentation to
% respiration
% * genes - A cell array of GenBank(R) accession numbers for labeling the
% rows in yeastvalues
% * times - A vector of time values for labeling the columns in yeastvalues

%%
% Perform PCA on the expression data and plot the result.
mapcaplot(yeastvalues, genes)