Closed VictorGoitea closed 2 years ago
Hi @VictorGoitea, yes, the difference will be that DESeq2's function automatically removes variables prior to performing PCA. If you may take a look at the ntop
parameter: https://www.rdocumentation.org/packages/DESeq2/versions/1.12.3/topics/plotPCA
That should explain the difference.
Kind regards, Kevin
Hi,
First of all, congrats and thank you for such a nice tool for PCA. I was wondering about the percentage of variation. I have obtained different results between
DESeq2::plotPCA()
andPCAtools::biplot()
. For example, I have a case whereplotPCA
shows 19% for PC1 andbiplot
shows 15.4% for PC1, of course, using the same vst data as input. I observed thatplotPCA
usesprcomp
in its calculation of sdev, while you useBiocSingular::runPCA
. Can you @kevinblighe or @LTLA explain here why the differences? And is it okay they do not match or should we be concern about it.Thanks in advance