Entering edit mode
mheydarpour
▴
10
@mheydarpour-9430
Last seen 6.1 years ago
I have a Gene-Expression file contain 18,000 genes (RPKM) for 150 patients of Breast Cancer (Normalized).
I would like to calculate the first 4 principle component (PCA1, PCA2, PCA3,PCA4) of this data and then insert them in the model along with "gender" and "age" for adjusting in Limma. Could you please advise how to do that.
design=model.matrix(~0+age+gender+PCA1+PCA2+PCA3+PCA4+treatment)
Thanks James for your great reply! How I can get the values of each PCA as an output and plot them?