I am trying to generate a heat map of the top differentially expressed genes between two samples. I have used DESeq2 to identify these. My code is
library(DESeq2)
countData = read.csv("data.txt",header = T,sep = "\t")
colData = DataFrame(condition = factor(c("female","female","female","male","male","male")))
dds <- DESeqDataSetFromMatrix(countData = countData,colData = colData,design = ~ condition)
dds <- dds[ rowSums(counts(dds)) > 1, ]
dds <- DESeq(dds)
res <- results(dds,contrast=c("condition","male","female"))
summary(res)
I am not sure how to get a heatmap from the dds or res objects. Please help. Thanks
This guideline contains code for making DESeq2 heatmaps, and also the DESeq2 manual does. Using google to find this wasn't too hard!