I'm trying to find out a set of differentially expressed genes between tumor and normal condition of the same samples. My questions are as follows:-
Is there a minimum number of samples that I need to use to achieve the result?
Is the following design appropreiate for this task?
My design is as follows:
dds <- DGEList(counts = x, genes = genes)
df <- data.framePatient.ID = factor(rep(1:3,each=2)), Treatment = factor(rep(c("Pre","On"),3),levels=c("Pre","On")))
countData <- dds$counts
dds <- DESeqDataSetFromMatrix(countData, DataFrame(df), ~ Patient.ID + Treatment )
dds <- DESeq(dds)
res <- results(dds, alpha = 0.05)
Design table:
Patient.ID Treatment
1 1 Pre
2 1 On
3 2 Pre
4 2 On
5 3 Pre
6 3 On
Result of the above code:
out of 18545 with nonzero total read count
adjusted p-value < 0.05
LFC > 0 (up) : 2531, 14%
LFC < 0 (down) : 2010, 11%
outliers [1] : 0, 0%
low counts [2] : 2145, 12%
(mean count < 3)
[1] see 'cooksCutoff' argument of ?results
[2] see 'independentFiltering' argument of ?results
Thanks for your reply sir.
Can you please guide me regarding which criteria is used to decide whether a gene is up or down regulated? Is it log fold change (LFC in the results) ?
Also, the primary objective of my experiment is to identify genes that are affected before and after tumor. You reckon I'm doing it right?
Your opinion means a lot to me.
Yes, the sign on the fold-change dictates whether a gene is up or down regulated. Assuming
Pre
andOn
are before and after treatment then yes, you're doing things correctly.Alright, thanks a lot sir.
I had to clarify a few basics.
So the count matrix should be such that the first column contains the gene count of patient.id 1 before treatment and the second column contains the gene count of patient.id 1 after treatment and so on for the rest of the columns in the matrix, right?
And for the gene.id i'm using the row numbers of the genes from the excel sheet rather than the gene names that way it is easy for me to extract only those specific genes for further experimentation. I've obtained the corresponding row numbers of the genes that are up or down regulated in the results. I'm assuming there is nothing wrong with my approach. Is there?
Sorry for the trouble.
df
matches the matrix then you're fine. The actual order of the columns are then irrelevant.If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.