Good afternoon,
I have been struggling with this for days now. I'm afraid I don't have any failing/working code to post. I apologise if the formatting or style of this post is a little off - it is my first time posting here.
Background: I need to compare genes across 3 tissue types to identify whether there is any difference in expression.
I have created my DSEQ object in R from :
A gene:subject matrix - with each subject providing expression data for each gene across each of three different tissues - lets say, blood, gut, kidney. Prescreened to remove genes with little or no expression
Subj1.B Blood ¦ subj1.G Gut ¦ Subj1.K Kidney ¦ Subj2.B Blood ¦ Subj2.G Gut ¦ Subj2.K Kidney Gene1 16.3 23.5 etc. etc. etc. etc. Gene2 12.9 6.89 etc. etc. etc. etc. Gene3 1.8 etc. etc. etc. etc. etc.
and:
A biodata dataframe with each subject represented 3 times for each tissue type
Age Sex Tissue_Type Subj1.B x z Blood Subj1.G x z Gut Subj1.K x z Kidney Subj2.B x z Blood Subj2.G x z Gut Subj2.K x z Kidney Subj3.B x z Blood Subj3.G x z Gut Subj3.K x z Kidney
I created the DSEQ object and carried out the DSEQ analysis.
All works as it should, so far. I have carried out the VST transformation and plotPCA.
So, to my current issue:
I need to identify which genes have the same or statistically similar expression levels across all 3 tissue types, and then exclude them from further study. I have used
contrast <- c("Tissue-Type", "Blood", "Gut")
but that only compares two out of the three, and even with two I'm struggling to see the metric I should use to establish no significant difference in expression.
I wonder if I should even be moving back to a single tissue dataframes and doing some plain comparative inferential statistics here - but my instincts tell me I'd missing out on something if I went down that route.
I'd really appreciate it someone could shine a light on away forward here for me.
Thanks,
JM
Thanks, JW.
I had read about LRT.
My original DESeqDataSet had Age, Sex and Tissue Type, so (bear with me) would I need to re-do the DSeq along these lines - just for Tissue-Type? :
then I can interrogate that object using degPatterns ().
Or would I just use my existing DSeq object with :
Then move onto the next stage?
I appreciate the support, JA
Please re-read my original post. The reduced model should not contain tissue type.
Okay - think I've got it. I'll report back.
Here is the report back:
After some trial and error, here is the code I used. It produced an answer but I'm not sure if a) it is the answer I need, or b) if it is, how to remove those genes where expression is equal.
Results
The above was not what I was expecting, and I can't work out what it's telling me.
At this point it's 12.20 a.m. and my brain gave up. So I went to bed to get some sleep, and continued to think about it for another two hours.
I think I'm further forward? but not sure where I have arrived.