@GabrielHoffman thank you for a fantastic package!
Apologies for the naivety as this is new to me but I had a question about setting contrasts using makeContrastsDream.
My first analysis was to look at the impact of various stimulation on various cell lines and I ran the following code which I believe is correct and worked:
Of note, each cell line was plated in triplicate before stimulation. I merged the triplicates via median before running the model. Would it be better to keep the triplicates separate?
In addition, to take this further I wanted to assess the interaction of stimulation with a certain genotype. I am particularly interested in the following contrasts:
Differences between genotypes without stimulation (both Con HLA Pos vs Con HLA Neg and PDL HLA Pos vs PDL HLA Neg conditions)
Differences between genotypes with stimulation (Fib HLA Pos vs Fib HLA Neg)
Therefore, I planned to run an interaction model like this:
form <- ~ 0 + HLA*Stim + (1 | ID)
However, I am stuck on how to setup contrasts for this more complex model. I've attached my metadata file here for reference.
Any insight into the call I can make to makeContrastsDream for this interaction analysis? I looked at the example you provided here on GitHub for making contrasts but didn't see an example with an interaction to follow.
@GabrielHoffman thank you for a fantastic package!
Apologies for the naivety as this is new to me but I had a question about setting contrasts using makeContrastsDream.
My first analysis was to look at the impact of various stimulation on various cell lines and I ran the following code which I believe is correct and worked:
Of note, each cell line was plated in triplicate before stimulation. I merged the triplicates via median before running the model. Would it be better to keep the triplicates separate?
In addition, to take this further I wanted to assess the interaction of stimulation with a certain genotype. I am particularly interested in the following contrasts:
Therefore, I planned to run an interaction model like this:
form <- ~ 0 + HLA*Stim + (1 | ID)
However, I am stuck on how to setup contrasts for this more complex model. I've attached my metadata file here for reference.
Metadata.csv
Any insight into the call I can make to makeContrastsDream for this interaction analysis? I looked at the example you provided here on GitHub for making contrasts but didn't see an example with an interaction to follow.
Thanks for your help!