Getting loadings of components from pcaMethods
1
0
Entering edit mode
@johnnytam100-13898
Last seen 5.5 years ago

I want to get the loadings of components from pcaMethods.

To illustrate the problem, I have a matrix x

  a b c
1 ... ... ...
2 ... ... ...
3 ... ... ...

 

By loadings(x), I get

  PC1 PC2
a ... ...
b ... ...
c ... ...

 

However, I want to get

  PC1 PC2
1 ... ...
2 ... ...
3 ... ...

 

Anyone knows how to do that?

Thanks a lot!

pcamethods • 746 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 1 day ago
United States

It is conventional for high-throughput data to have samples in columns and reporters (genes, transcripts, whatever) in rows. In which case, when you get the loadings, what you should expect to get is the thing you get. What you want is (apparently) to get the loadings by gene, which doesn't make any sense - PCA is intended to collapse the gene information, so by definition you don't have anything by gene any more, because you have collapsed the data into linear combinations of the underlying gene expresssion.

ADD COMMENT

Login before adding your answer.

Traffic: 660 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