Hello I'm quit newbie to RNAseq and R scripts. I was trying to figure out how to manage DESeq's design model matrix. I have 18 samples to analyze and main target is to get DEGs between Con and Disease. This is how design looks:
Batch Donor Disease
1 A Con
2 A Con
3 A Con
1 B Con
2 B Con
3 B Con
1 C Con
2 C Con
3 C Con
1 D Disease
2 D Disease
3 D Disease
1 E Disease
2 E Disease
3 E Disease
1 F Disease
2 F Disease
3 F Disease
I tried ~Disease
and ~Disease + Donor:Batch
and results was totally different.
I'm not sure about using Donor:Batch and don't know about batch effect reducing.
Can anyone give me an advice, please?
Thank you.
Thank you for the comment!
Here is my whole DESeq command
~Donor + Batch + Disease
does not workHow does that design "not work"? What would be more helpful that the details of how you loaded your data is the DESeq command and the results command.
As you can see, "model matrix not full rank" message comes out.
I load my salmon quant files which was generated in linux through vignette recomended method. Make them as txi files and annotate with db loaded in gtf .
The model matrix for
~Donor + Batch + Disease
will not be full rank, is what the OP is saying. This is one of those situations where you have to use the trickeration outlined in the section titled Group-specific condition effects, individuals nested within groups in the DESeq2 vignette.And for the OP, you do see the part where it says
Right?
Also the part about how your batch variables are numeric rather than factor?
Yes, I am re-reading the vignette. I think I missed Group-specific condition effects, individuals nested within groups part. Thank you very much.
and Batch is factor :)
I just added
and commanded
worked perfectly!
Thanks!