[BioC] problem using esApply

Robert Gentleman rgentlem at fhcrc.org
Fri Feb 8 22:33:15 CET 2008



L L wrote:
> Hi,
> 
> I tried to use esApply to analyze affy data (aaa) saved in affyBatch. However it created some problem.
> 
> f<- function(x) 
> {  
>    tmp <- t.test(x[index2-1],x[index1-1])
>    c(mean(tmp$estimate), diff(tmp$estimate), tmp$statistic, tmp$p.value)
> }
> 
> scores <- esApply(exprs(expr), 1, f)
> 
> Error in function (classes, fdef, mtable)  : 
> unable to find an inherited method for function "esApply", for signature "matrix"

   nor should there be,
   the help page should be consulted before the mailing list

   es in esApply stands for ExpressionSet,
   so

     scores <- esApply(expr, 1, f)

  is more likely to work,


> 
> Can anybody help me out. what is the problem? Thank you in advance!
> 
> LL
> 
> 
> 
> _________________________________________________________________
> 
> 
> 08
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
> 

-- 
Robert Gentleman, PhD
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M2-B876
PO Box 19024
Seattle, Washington 98109-1024
206-667-7700
rgentlem at fhcrc.org



More information about the Bioconductor mailing list