Hi,
I was wondering is there a way to include baseline gene expression as covariate in model matrix formula for limma? I have microarray data from clinical trial patients in a control and an intervention group and I want to adjust for baseline gene expression changes in the linear model along with other covariates. Does the lmFit function of limma allow for this? If not, would it be advisable to just run linear model separately for each gene and use the baseline gene expression in that?
Code should be placed in three backticks as shown below
# include your problematic code here with any corresponding output
# please also include the results of running the following in an R session
sessionInfo( )
Can elaborate a bit more about what you mean by "baseline gene expression"?
Typically when I think of that term, I think of having something like two samples from the same person/subject before/after intervention, and you can include
subject_id
id as a term in the linear model to account for differences in individual "baseline expression"Or you may expect to see differences in baseline expression between, say, males and females, and you want to adjust for that before doing the differential expression test. In this case you would add
sex
as a covariate.Is that something like what you're thinking of?
Hi,
Thank you for your insights. I actually meant gene expression measurement pre and post intervention which in this case are two different dietary patterns. Sorry for the confusion. I am interested in finding genes that are significantly changed in the intervention group diet compared to the control group diet.