Question: cluster based on full dataset but only show heatmap for 4 genes
0
gravatar for Ron
3.8 years ago by
Ron930
United States
Ron930 wrote:

 

 

Hi,

I want to make a heat map with 4 genes across the samples but the dendrogram should be according to all 20k genes expression values.

The code for heat map is:

          heatmap.2(data1, col=redgreen(75), Rowv = FALSE, Colv = FALSE, scale="row",dendrogram="none", trace="none", margin=c(20, 10))

And the code for making a separate complete dendrogram is :

dend contains log of the expression values of all genes across the samples.

d <- hclust(as.dist(1-cor(dend,method="pearson")), method="average")
 plot(d)

 

I think the heat map.2 function can be used for this purpose?Creating the heat map based on 4 genes,but clustering based on all genes?

Thanks,

Ron

heatmap rna-seq cluster • 1.3k views
ADD COMMENTlink modified 3.8 years ago • written 3.8 years ago by Ron930
0
gravatar for Ron
3.8 years ago by
Ron930
United States
Ron930 wrote:

I used this command:

heatmap.2(data1, col=my_palette, Rowv = FALSE, Colv = as.dendrogram(d), scale="row",dendrogram="col", trace="none", margin=c(20, 10))
ADD COMMENTlink written 3.8 years ago by Ron930
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 615 users visited in the last hour