error when trying to apply the specific gene filter.
2
0
Entering edit mode
DataFanatic ▴ 10
@datafanatic-12212
Last seen 4.1 years ago

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!

genefilter • 1.3k views
ADD COMMENT
1
Entering edit mode
@james-w-macdonald-5106
Last seen 12 hours ago
United States

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 COMMENT
0
Entering edit mode

Thank you for your comment,something like this?

f1 <- kOverA(0.50, 3.5)

ffun <- filterfun(f1)

flrGene <- genefilter(geneExpr, ffun)

geneExpr<- geneExpr[flrGene, ]​

 

ADD REPLY
0
Entering edit mode
DataFanatic ▴ 10
@datafanatic-12212
Last seen 4.1 years ago

f1 <- kOverA(0.50, 3.5)

ffun <- filterfun(f1)

flrGene <- genefilter(geneExpr, ffun)

geneExpr<- geneExpr[flrGene, ]​

something like this?

ADD COMMENT
0
Entering edit mode

You don't need to post the same thing twice, and you certainly don't need to use the 'Add your answer' box to post a comment. And yes, that is one way you can filter.
 

ADD REPLY
0
Entering edit mode

Thanks for your answer, very helpful. Blessings. 

 

ADD REPLY

Login before adding your answer.

Traffic: 1033 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6