Cut one subcluster from heatmap and then paste it using R
0
0
Entering edit mode
6.2 years ago

Hello Sir/madam,

I have total 304 DEG and i have clustered them using hclust and heatmap.2 is used to plot the heatmap. heatmap so this heatmap I have, contains Upper right side block as down regulated genes in cancer (green), lower right side block as up regulated genes in cancer (red).

  1. I want to cut only the lower right side block and then paste that block separately and also want to show the gene symbols to the side of heatmap.

I have refereed to the ComplexHeatmap, for split function.

  1. How to cut this red block using R and then paste it separately. without changing the cluster pattern which i have observed in the heatmap ? (no reclustering)

A sample R code will be helpful.

Thank you so much in advance.

R heatmap clustering • 2.2k views
ADD COMMENT
0
Entering edit mode

Related post: A: extraction of subcluster from a hclust object in the form of matrix to plot a he

If you literally just want to keep the right side block in its current form, then literally just edit the figure in a graphics editor. You could, for example, shade over the part of the heatmap in which you are not interested, and/or highlight the interesting part with a red box.

There does not have to be code for everything, of course.

ADD REPLY

Login before adding your answer.

Traffic: 1882 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