Hi All:
I have a matrix that contains the gene EntrezID and the counts number at different developmental stage, the head of which looks like this:
> head(count_cts)
E11_rep1 E11_rep2 E14_rep1 E14_rep2 E18_rep1 E18_rep2 Adult_rep1 Adult_rep2
21749 4638 3254 1472 1862 632 1019 799 684
98403 8794 7109 5282 7475 3778 5853 2569 2595
18393 7917 7888 3758 5916 2814 4480 2997 2752
21961 6972 9219 6400 5051 2583 4079 5272 5210
76709 15345 19298 16327 21389 19766 28117 14388 13096
67534 12314 9867 5107 7963 4060 6005 1404 1397
It contains the developmental stages, each contains 2 replicates, the rowname of the the matrix is the geneID. The number is the counts I got from Rsubread. The geneID are already selected using a criteria. Now I want to use heatmap to describe the gene expression level change.
My question is: How should I process the counts before feed them into heatmap?
Thank you,
I tried. It gave a heatmap with all black color.
You could try adding another break in. I would keep it simple and call the heatmap on your normalized count matrix. After that, you can modify the parameters one by one to change colors and scale bar breaks to your liking.
Will try. Your advice looks working better. Thanks!
Hi: I have read some short manuals for heatmap for getting better images but I failed to get one with color showing the dynamic change of reads counts(normalized).
The heatmap generated is showing with single color. I guess it is because the reads counts value show too big variation for different genes. I am wondering how can I set the color to show the change at different stages:
For example for gene 21749, 36.30160 is high at E11 compared to 8.476963 at Adult; however, this value is the low expression in gene 98403. How to solve this conflicts? Also after heatmap, there will be clustering. Is there any methods to get the information on which genes are in the same cluster?
Try log transforming your count matrix before plotting with heatmap. You can export log-transformed counts from edgeR directly:
Thanks for the reply. Though the numbers looks better, but it still is a single colored heatmap.
How can I show you the map I got to make my expression better to be understood.
Thanks a lot,