Question: Getting loadings of components from pcaMethods
0
gravatar for johnnytam100
5 months ago by
johnnytam1000 wrote:

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 • 102 views
ADD COMMENTlink modified 5 months ago by James W. MacDonald49k • written 5 months ago by johnnytam1000
Answer: Getting loadings of components from pcaMethods
0
gravatar for James W. MacDonald
5 months ago by
United States
James W. MacDonald49k wrote:

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 COMMENTlink written 5 months ago by James W. MacDonald49k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 166 users visited in the last hour