I am having some problem with the impute.knn function. When I run it on my
data set, R will crash and close without any error message (other than the
send Microsoft error report message).

 

The problem is not my data set as it also happens with the data provided
with the impute package. You should be able to generate the error by doing
the following:

 

library(impute)

data(khanmiss)

khan.expr <- khanmiss[-1, -(1:2)]

if(exists(".Random.seed")) rm(.Random.seed)
khan.imputed <- impute.knn(as.matrix(khan.expr[,1:4]))

 

If I run the function on the entire data set it is fine, the problem comes
when I reduce the number of samples to anything less than 8. So for example
impute.knn(as.matrix(khan.expr[,1:8])) works fine, but
impute.knn(as.matrix(khan.expr[,1:7])) crashes.
 
Does anyone have any advice on how to fix this? 
 
Thanks,
 
Peter
 
Using R version 2.6.2 (2008-02-08)
Impute Version: 1.10.0
Bioconductor 2.1
 
 
 

 

 

Peter White, Ph.D.,

Technical Director, IDOM Functional Genomics Core

University of Pennsylvania, Dept. of Genetics

415 Curie Blvd., 752A CRB

Philadelphia, PA 19104-6149

 

Tel: +1 (215) 898-0773

Fax: +1 (215) 898-5408

E-mail: pwhite@mail.med.upenn.edu

 

 <http://www.med.upenn.edu/idom/cores_fgc.html>
http://www.med.upenn.edu/idom/cores_fgc.html

 <http://www.med.upenn.edu/kaestnerlab/>
http://www.med.upenn.edu/kaestnerlab/

 


	[[alternative HTML version deleted]]

