@Kevin
I have PCA data , genes in rows and samples in column
ExpAccession ExpA 1 N ExpA 2 N ExpA 3 N ExpA 4 N ExpA 5 N ExpA 1 T ExpA 2 T ExpA 3 T ExpA 4 T ExpA 5 T
P10645 -1.80 -2.31 -2.12 -1.99 -1.92 -1.98 -0.57 -0.99 -0.48 2.62
P31327 -1.57 -1.90 -1.98 -1.79 -1.71 -0.02 -0.67 -0.86 -1.60 2.53
Q9BYZ8 -1.08 -1.80 -1.62 -2.07 -1.51 -1.72 -0.40 0.57 -1.52 2.48
O43745 -2.59 -2.02 -2.65 -1.39 -1.68 1.00 -1.44 -0.78 -1.81 2.46
Q99795 -1.68 -2.15 -2.40 -2.08 -2.64 0.45 -0.48 -0.32 -1.46 2.42
Q02817 -1.03 -1.47 -1.19 -1.35 -1.31 -1.38 -0.49 0.10 -1.21 2.38
I read your tutorial https://bioconductor.org/packages/release/bioc/vignettes/PCAtools/inst/doc/PCAtools.html
You start with class of pca
How I can adapt my matrix to your class (p) to carry on with your tutorial on plotting PCA?
Thank you



Could you please fix the images ?
You did not transpose your matrix prior to running
prcomp. In a gene expression matrix with rows = genes and columns = samples one would run PCA likeprcomp(t(data)), see e.g. the source code ofDESeq2::plotPCA. Re-run the PCA using the log2-normalized intensity values and see how it performs.For the future please see How to add images to a Biostars post. You need the pull path to the image.