A question about PCA on microarray data
1
0
Entering edit mode
@johan-lindberg-815
Last seen 10.3 years ago
I have a question about principal component analysis on microarray data. I found two functions for doing PCA, princomp and prcomp. The calculation in prcomp is done by a singular value decomposition which is not what I want to do. The problem with princomp is that the function seems to scale the data by default. Since I am dealing with log rations there is no reason to scale the data because it is on a comparable scale. Is there some way of doing PCA in R on microarray data without having to scale the data? Best regards // Johan Lindberg [[alternative HTML version deleted]]
Microarray Microarray • 1.3k views
ADD COMMENT
0
Entering edit mode
Ramon Diaz ★ 1.1k
@ramon-diaz-159
Last seen 10.3 years ago
Dear Johan, On Thursday 11 November 2004 17:01, Johan Lindberg wrote: > I have a question about principal component analysis on microarray data. > > I found two functions for doing PCA, princomp and prcomp. > > The calculation in prcomp is done by a singular value decomposition > which is not what I want to do. Why? prcomp uses svd because of numerical stability issues, and using svd is a standard way of doing PCA. The help for princomp says: " The calculation is done using 'eigen' on the correlation or covariance matrix, as determined by 'cor'. This is done for compatibility with the S-PLUS result. A preferred method of calculation is to use 'svd' on 'x', as is done in 'prcomp'." > > The problem with princomp is that the function seems to scale the data > by default. Since I am dealing with log rations there is no reason to > scale the data because it is on a comparable scale. Is there some way of > doing PCA in R on microarray data without having to scale the data? if you do ?prcomp you'll see you can set the "scale." argument to FALSE. Best, R. > > Best regards > > // Johan Lindberg > > > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor -- Ram?n D?az-Uriarte Bioinformatics Unit Centro Nacional de Investigaciones Oncol?gicas (CNIO) (Spanish National Cancer Center) Melchor Fern?ndez Almagro, 3 28029 Madrid (Spain) Fax: +-34-91-224-6972 Phone: +-34-91-224-6900 http://ligarto.org/rdiaz PGP KeyID: 0xE89B3462 (http://ligarto.org/rdiaz/0xE89B3462.asc)
ADD COMMENT

Login before adding your answer.

Traffic: 575 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6