Entering edit mode
6.9 years ago
hassanlou110
▴
40
Hi, I can't draw PCA plot by this command. The following error massage appeared. I appreciated for any one help.
mydata <- ReadAffy()
eset <- rma(mydata)
plotPCA(eset, groups=as.numeric(pData(mydata)[,2]), groupnames=levels(pData(mydata)[,2]))
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘plotPCA’ for signature ‘"ExpressionSet"’
Try
library("affy")
first.I previously install and load affy packages, however I see that error!
You need to load the library in every R session you start.
Please add the result of
sessionInfo()
These are the result of sessionInfo()
Don't use
plotPCA()
. Use base R code: A: PCA plot from read count matrix from RNA-SeqYour
affycoretools
installation is broken. That's where theplotPCA()
function that you're trying to use should be coming from. If you fix that then it'll work.Thank you Ryan, do you know how can I fix that? maybe I should install this package as computer administrator?!
I assume it's installed as your user, so try uninstalling and reinstalling (also as your user). Presumably you'll get an error message upon reinstallation that's informative.