Example code for doing PCA manually
wsp@emory.edu.

http://www.bimcore.emory.edu/bbseries/PCA.ppt