Question: error when trying to apply the specific gene filter.
gravatar for alerodriguez
3 days ago by
alerodriguez0 wrote:

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 


f2 <- ttest(gcrma.ExpressionSet$TG.binary, p=0.1)
wh2 <- genefilter(exprs(gcrma.ExpressionSet), filterfun(f2))


Error in t.test.default(x = c(2.22237858766258, 2.22237858766258, 2.22237858766258,  : data are essentially constant


ADD COMMENTlink modified 2 days ago by James W. MacDonald43k • written 3 days ago by alerodriguez0
gravatar for James W. MacDonald
2 days ago by
United States
James W. MacDonald43k wrote:

Using information about the experiment to filter your data is a horrible idea! The idea behind filtering is to reduce the multiple comparisons by excluding genes that are probably not being expressed, and are just contributing noise and not signal. You can do that by excluding genes with an average expression below some level, or by removing genes that have fewer than M out of N samples greater than some cutoff. But selecting genes based on whether or not they have a large t-statistic and then testing for differential expression using a t-statistic will artificially bias your results towards the alternative. You should be using a filtering method that is agnostic to the groups you are filtering on.

ADD COMMENTlink written 2 days ago by James W. MacDonald43k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 374 users visited in the last hour