How to regress phenotype ~ gene + covars in limma?
1
0
Entering edit mode
anon20955 • 0
@anon20955-20571
Last seen 5.1 years ago

Hi all:

I am wondering how to perform the regressions phenotype ~ gene + covariates in R using limma with microarray data.

I know how to regress gene ~ phenotype + covariates. For example, if phenotype is BMI and covariates is age and sex, I can write:

design = model.matrix(~ bmi + age + sex, data)
fit = eBayes(lmFit(eset, design))
results = topTable(fit, coef='bmi')

However, this is not the same as bmi ~ gene + age + sex.

All advice appreciated!

limma gene expression microarray R • 1.2k views
ADD COMMENT
0
Entering edit mode
@gordon-smyth
Last seen 5 hours ago
WEHI, Melbourne, Australia

You can't do that in limma. limma is designed to regress gene expression on sample characteristics, not the other way around.

ADD COMMENT
0
Entering edit mode

What is the best-practices way to perform the regression that I'm interested in? Simply a for loop over the genes plus lm?

ADD REPLY
0
Entering edit mode

Could you elaborate what you are trying to achieve? Are you looking for the most important genes that may affect the phenotype? Perhaps you would be better off doing Lasso regression for that purpose.

ADD REPLY

Login before adding your answer.

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