Hi, Adai

Thanks for your email. I think I found out what's causing the problem, it is because I did not specify how to deal with ties when ranking those gene by p values, so that those ranks returned are not integers (say, some gene is with rank 10.5). so when I use "which" to search for gene with rank 10, it can not find it. Anyway, thanks a lot!

James

Adaikalavan Ramasamy <ramasamy@cancer.org.uk> wrote: Can you find just ONE instance (i.e. one gene) that shows this behaviour 
and email us the dput() on that vector please. It is very hard to 
understand what you have shown us without an example.

Thank you.

Regards, Adai



James Anderson wrote:
> Francois,
> 
> What I wanted to do is to select top 20 genes from a microarray data using kstest, I have tried t.test and wilcox.test, they both work perfectly fine. When using kstest, it output the first 6 genes without problem, but the other 14 genes are output with NA. I am using the most recent version of R (2.6.0  10/03/07), below is the output, those number are the gene indices and their corresponding p values. 
> 
> Thanks,
> 
> james
> 
> 493 
> 1772 
> 249 
> 1671 
> 245 
> 780 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> 1.053130e-06 
> 2.615535e-06 
> 4.426209e-06 
> 5.57936e-06 
> 1.280431e-05 
> 1.874259e-05 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> NA 
> 


 __________________________________________________



	[[alternative HTML version deleted]]

