Differential Gene Expression Using Deseq2
1
0
Entering edit mode
4.2 years ago
mropri ▴ 160

Hi,

I am trying to create a heatmap of differentially expressed lncRNAs in normal, atypical, dcis, and invasive breast cancer patient samples. I have created a heatmap from the counts file but that seems to be the cumulative count of the 4 conditions for each lncRNA and the lncRNAs with the highest total count are represented first or ranked first. I would like to see how the expression (gene count) changes between the 4 conditions for each lncRNAs to see how they are going up or down in expression from normal breast tissue to breast cancer. Is there a way to achieve that? If someone is able to help with this, I would truly appreciate it.

RNA-Seq • 962 views
ADD COMMENT
0
Entering edit mode
4.2 years ago
tiago211287 ★ 1.5k

The count matrix is a non-normalized data format. If you are using Deseq2 you can extract the normalized matrix with :

library(dplyr)
library(DESeq2)
library(ComplexHeatmap)

#Extract the rlog matrix from the Deseq2 results
rld <- rlog(dds, blind=FALSE)
mat <- assay(rld)

#Pseudocode to get significant genes
sig.genes <- c("gene1", "gene2", ...)

mat <- mat[sig.genes,]
mat <- scale(t(mat), center = T, scale = T)

set.seed(42)
HM <- Heatmap(t(mat), column_split = 2, row_split = 2)

Keep in mind that this code was not tested and was not made using examples. You should take a look at the Deseq2 Manual to really understand what is going on here.

http://bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html

ADD COMMENT
0
Entering edit mode

Thank you will try this

ADD REPLY
0
Entering edit mode

So what is the problem? You just opened a new question with identical content? This answer tells you what to do, you must scale your data to get values relative to the mean of each row. That is what the scale part does.

Basically if you have your log2 expression values or vst, do scaled <- t(scale(t(log2Values))) to transform them to the standardized scale. From there on you can plot them, check the ComplexHeatmap package, it has an extensive manual with plenty of example code. Ask if there are questions, please do not open identical questions, that is utterly disrespectful towards the users who took the time here to answer you since you pretend their posts never happened.

ADD REPLY

Login before adding your answer.

Traffic: 1658 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6