Dear all,
I wanted to ask if I can extend from the edgeR user manual 3.5 example, on between/within subjects comparisons.
I'm thinking on 3 ways I would like to extend:
Adding non-paired samples. From some patients I have only a single sample (ie not both tissueA and tissueB; for example, only tissueA from patient s19), is there a way to include these in the model?
Non-balanced paired sample counts. I have more paired (ie both tissueA and tissueB) samples from the Disease1 group (n=7) than from the Healthy (n=6) group, how can I include all paired samples? If I include them in the current model the coefficient DiseaseHealthy:patientIndexp7 is mentioned to be not estimable and this throws an error.
Introducing other co-factors. Can I add co-factors to the model, e.g. treatment?
See below for the samples and model.
Thanks for all your help/suggestions.
Best regards, Jorg
#
targets frame (full):
file tissue patient Disease
file007 tissueA s22 Disease1
file006 tissueB s22 Disease1
file004 tissueA s19 Disease1
file005 tissueB s21 Healthy
file009 tissueB s25 Disease1
file011 tissueB s26 Healthy
file012 tissueB s27 Healthy
file014 tissueA s28 Disease1
file013 tissueB s28 Disease1
file015 tissueA s29 Healthy
file016 tissueB s29 Healthy
file017 tissueB s32 Healthy
file019 tissueA s33 Disease1
file018 tissueB s33 Disease1
file020 tissueA s34 Healthy
file021 tissueB s34 Healthy
file022 tissueA s35 Disease1
file024 tissueA s36 Healthy
file023 tissueB s36 Healthy
file025 tissueB s37 Disease1
file026 tissueA s38 Disease1
file027 tissueB s38 Disease1
file028 tissueA s39 Disease1
file029 tissueB s39 Disease1
file030 tissueA s40 Disease1
file031 tissueB s40 Disease1
file032 tissueA s41 Disease1
file034 tissueA s42 Healthy
file035 tissueA s43 Healthy
file036 tissueB s43 Healthy
file037 tissueA s44 Healthy
file038 tissueB s44 Healthy
file639 tissueA s45 Healthy
file040 tissueB s45 Healthy
file041 tissueA s46 Disease1
file042 tissueA s47 Healthy
file043 tissueB s47 Healthy
file044 tissueA s48 Disease1
file045 tissueB s50 Disease1
file001 tissueA s6 Disease1
file002 tissueB s6 Disease1
file003 tissueA s7 Disease1
#
targets frame (balanced/paired):
file tissue patient Disease patientIndex
file007 tissueA s22 Disease1 p1
file006 tissueB s22 Disease1 p1
file014 tissueA s28 Disease1 p2
file013 tissueB s28 Disease1 p2
file015 tissueA s29 Healthy p1
file016 tissueB s29 Healthy p1
file019 tissueA s33 Disease1 p3
file018 tissueB s33 Disease1 p3
file020 tissueA s34 Healthy p2
file021 tissueB s34 Healthy p2
file024 tissueA s36 Healthy p3
file023 tissueB s36 Healthy p3
file026 tissueA s38 Disease1 p4
file027 tissueB s38 Disease1 p4
file028 tissueA s39 Disease1 p5
file029 tissueB s39 Disease1 p5
file030 tissueA s40 Disease1 p6
file031 tissueB s40 Disease1 p6
file035 tissueA s43 Healthy p4
file036 tissueB s43 Healthy p4
file037 tissueA s44 Healthy p5
file038 tissueB s44 Healthy p5
file042 tissueA s47 Healthy p6
file043 tissueB s47 Healthy p6
This works with the model as discussed in the manual 3.5:
~Disease + Disease:patientIndex + Disease:tissue
Thanks for all your help/suggestions.
Best regards, Jorg
And your contrast of interest is... what?
I would like to make several contrasts:
disease vs healthy. For all tissues, and tissue specific (tissueAdisease - tissueAhealthy or tissueBdisease - tissueBhealthy)
tissueA vs tissueB.
Difference of differences contrast for disease vs healthy in one tissue vs the other: (tissueAdisease - tissueAhealthy) - (tissueBdisease - tissueBhealthy)
Thanks for your help, Jorg