Adjusting for gender using limma
1
1
Entering edit mode
chris86 ▴ 420
@chris86-8408
Last seen 4.4 years ago
UCL, United Kingdom

Hi

I am just trying to work out if this is the correct way of adjusting for having 2 patient groups, disease and non disease, each with different numbers of male/ females. I just want to know what genes are different between the disease and non disease, I don't care about the gender specific genes. This is my code:

 

design <- model.matrix(~disease+sex)
matrix <- data.matrix(countTable2)
dge <- DGEList(counts=matrix)
dge <- calcNormFactors(dge)
v <- voom(countTable2, design, plot=TRUE)
fit <- lmFit(v,design)
fit <- eBayes(fit)
top2 <- topTable(fit,coef=2,number=Inf,sort.by="P")
sum(top2$adj.P.Val<0.05)

 

If I include + sex when making the model matrix I get 50 DE genes, and without it I get 46.

 

Thanks for your help,

 

Chris

limma microarray sequencing • 2.3k views
ADD COMMENT
2
Entering edit mode
@james-w-macdonald-5106
Last seen 20 hours ago
United States

That looks good to me.

ADD COMMENT

Login before adding your answer.

Traffic: 482 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