Using the following code to look at differential expression in a couple of datasets. Over and over again the # of up and and down regulated genes is approximately equal. I just wonder if I'm missing something, but I can't find anything about this anywhere. It can't be an artifact of normalization. Any ideas?
library("DESeq2")
countData <- as.matrix(read.csv("genecountmatrix.csv", row.names="geneid")) colData <- read.csv("phenodata.txt", sep="\t", row.names=1)
all(rownames(colData) %in% colnames(countData))
countData <- countData[, rownames(colData)] all(rownames(colData) == colnames(countData))
dds <- DESeqDataSetFromMatrix(countData = countData, colData = colData, design = ~ Treatment)
dds <- DESeq(dds)
res <- results(dds)
(resOrdered <- res[order(res$padj), ])
MA-plots are an excellent way of checking how normalization behaves. Can you share one,
plotMA()
?