Complex Model Design with Bumphunter (Minfi)
1
0
Entering edit mode
@andrewjskelton73-7074
Last seen 8 months ago
United Kingdom

Hi, 

I'm following the Minfi Users Guide to look for DMRs in 450K data, and it indicates I should include an object derived from the model.matrix function. The example is very simple: ~Pheno. This doesn't really explain what happens when you put in a more complex model of say 3 treatments, or 3 treatments and a technical variable. Is there anywhere that explains this, or can anyone help explain?

As an example, interpreting a model that includes three treatments: A, B, and C?

Thanks 

minfi bumphunter model.matrix linear model • 2.4k views
ADD COMMENT
1
Entering edit mode
@james-w-macdonald-5106
Last seen 17 hours ago
United States

This doesn't really have much to do with minfi, but instead has to do with how you specify/interpret linear models in R. In other words, minfi is doing special things to smooth data across CpG sites, but when you fit the model, you are just fitting a linear model on data, using R.

While you can often get answers to explicit modeling questions on this forum, in general the expectation (for anybody who is analyzing data, really) is that the analyst knows what he/she is doing. Unfortunately, the aspects of linear modeling, plus how models are implemented in R, is something that is WAY beyond the scope of a support forum. Linear modeling alone is like four or five of the courses I took to get my master's, and that didn't include figuring out how to do these things in R (back when I was in school, we used this nasty thing called SAS, which makes me shudder to even think about...).

Anyway, there is no substitute for knowing what you are doing, and you aren't going to get that here. Good resources are the Users Guides for limma and edgeR, the DESeq/DESeq2 vignettes, which have lots of examples. Julian Faraway's book is also a really good resource. Plus I am sure you can dig up other things using the googles.
 

ADD COMMENT
1
Entering edit mode

 

There's also this book, hot off of the presses (well, still on the presses, but you can get a sneak peek):

https://leanpub.com/regmods

ADD REPLY
0
Entering edit mode

Jim, Steve, thanks for your constructive advice, I'll admit, I've been teaching myself a lot of linear model design / interpretation to try and really understand the inner workings on Limma, so those resources are great.

Based on my OP, I don't think I phrased my question very well, I guess what I was looking for, was to see if there was a way that Bumphunter dealt with contrast matrices, but in hindsight, that was just the wrong way to approach things.  

ADD REPLY
1
Entering edit mode

I'm in the same boat as you: much of my linear modeling chops was pretty much self taught. To be honest, I've learned quite a lot by just lurking on this mailing list/forum over the years, so I need to periodically thank the good folks like Jim, Gordon, Simon, Michael, Ryan (and more recently) Aaron for taking the extra time to provide some applied linear modeling schooling here ;-)

ADD REPLY
0
Entering edit mode

Couldn't agree more! 

ADD REPLY
0
Entering edit mode

Hi, just looking at this question myself now and am in a similarly uneducated boat. Is there a reason you say using contrast matrices with bumphunter is going about it the wrong way - I want to be able to specify my comparison/variable of interest in a model with multiple covariates

ADD REPLY

Login before adding your answer.

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