Please help me understand why I get an error when trying to apply the specific gene filter. Please see details below:
I am working with microarray data dim()=54675 80 grouped by status
table(gcrma.ExpressionSet$TG.binary) =group1=52 and group2=28
My data is in log2
#---------------------specific.filter------------------------
f2 <- ttest(gcrma.ExpressionSet$TG.binary, p=0.1)
wh2 <- genefilter(exprs(gcrma.ExpressionSet), filterfun(f2))
sum(wh2)
#---------------------specific.filter.error------------------------
Error in t.test.default(x = c(2.22237858766258, 2.22237858766258, 2.22237858766258, : data are essentially constant
Thanks!
Thank you for your comment,something like this?
f1 <- kOverA(0.50, 3.5)
ffun <- filterfun(f1)
flrGene <- genefilter(geneExpr, ffun)
geneExpr<- geneExpr[flrGene, ]