How can I got PCs (principle components) from flashpcaR

138 views
Skip to first unread message

Chunkao Wang

unread,
May 25, 2017, 10:40:19 PM5/25/17
to flashpca-users
when I run flashpcaR like:

> f = flashpca(geno, ndim=10)

> str(f)
List of 5
 $ values    : num [1:10] 3.19 3.18 3.17 3.16 3.15 ...
 $ vectors   : num [1:3000, 1:10] 0.00489 -0.02114 -0.02578 0.02533 -0.02576 ...
 $ projection: num [1:3000, 1:10] 0.00874 -0.03779 -0.04607 0.04527 -0.04604 ...
 $ center    : num [1:10000] 0.998 1.022 0.992 1.013 0.998 ...
 $ scale     : num [1:10000] 0.707 0.707 0.707 0.707 0.707 ...
 - attr(*, "class")= chr "flashpca

Could you tell me where I can get first PCs and second PCs?

Thanks

Chunkao


Gad Abraham

unread,
May 25, 2017, 11:55:37 PM5/25/17
to Chunkao Wang, flashpca-users
Hi Chunkao,

The 'projection' matrix is the PCs (column 1 is PC1, column 2 is PC2, etc).

Gad
> --
> You received this message because you are subscribed to the Google Groups
> "flashpca-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to flashpca-user...@googlegroups.com.
> To post to this group, send email to flashpc...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/flashpca-users/1186ec2c-2976-4aac-9109-4f091d918e48%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages