[BioC] knn.imput and prcomp error

Ingrid H.G. Østensen ingrid at microarray.no
Wed Sep 20 13:48:12 CEST 2006


Hi

I am running a microarray analysis that I have run before (on the same
data set) but now I get an error message because my matrix suddenly is no
longer numeric. Does anybody know what happens and how do solve it? Below
I have pasted the commands and error message.

Ingrid

memory.limit(1300)
library(limma)
library(impute)
aneTab <- read.table(file="S100A4_anes.txt",sep="\t",header=T,na.strings="")
colnames(aneTab)
aneData <- aneTab[,3:14]
aneData <- as.matrix(aneData)
is.matrix(aneData)
aneData_imp <- impute.knn(aneData)
aneDI_prc <-prcomp(t(aneData_imp))
Error in colMeans(x, n, prod(dn), na.rm) :
        'x' must be numeric



-- 
Ingrid H.G. Østensen
Bioinformatics user support (NMC)
Department of Tumour Biology
The Norwegian Radiumhospital
0310 Oslo

E -mail: ingrid at microarray.no
Phone:  +47 22 93 54 11
Fax:  +47 22 52 24 21



More information about the Bioconductor mailing list