Morning! I've just run DESeq2 on my RNAseq data with a dichotomous outcome, and I'm getting results that mean I have absolutely no deferentially expressed genes...
My input is a count matrix with samples in columns and genes in rows, i.e:
XXX1 XXX2 XXX3
Gene 1
Gene 2
Gene 3
My sample information table:
condition
XXX1 y
XXX2 y
XXX3 n
My code:
data<-read.csv("Input.csv", header=TRUE, row.names = 1, stringsAsFactors = FALSE)
colnames(data) <- substring(colnames(data), 2)
colData<-read.csv("Condition.csv",header = TRUE, row.names = 1)
#Double check names match up between Sample and data matrix
all(rownames(colData)==colnames(data))
dds<-DESeqDataSetFromMatrix(countData = data, colData = colData, design= ~condition)
dds$condition <- factor(dds$condition, levels = c("no","yes"))
dds<-DESeq(dds)
res<-results(dds)
My results:
summary(res)
out of 20338 with nonzero total read count
adjusted p-value < 0.1
LFC > 0 (up) : 0, 0%
LFC < 0 (down) : 0, 0%
outliers [1] : 0, 0%
low counts [2] : 0, 0%
(mean count < 0)
sum(res$padj < 0.1, na.rm=TRUE)
[1] 0
Since it doesn't follow to have 0 differentially expressed genes, I'm not sure what I've done wrong.
Thanks!
So, that was just to show how my files are arranged. My input has 183 samples and 20338 genes.
And how do you know that the two groups have any differences in gene expression?