Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • heatmap.2 for two samples without replication

    I have a samll RNA-Seq sample data as show below:


    >hsa-let-7a-5p 2209192 2451725
    >hsa-let-7b-5p 2602079 2662024
    >hsa-let-7f-5p 1053355 982221
    >hsa-let-7e-5p 246609 308765
    >hsa-let-7c-5p 281729 300213
    >hsa-miR-320a 185702 241361
    >hsa-miR-29a-3p 154804 104144
    >hsa-let-7d-5p 53230 67939
    >hsa-miR-423-5p 99983 78185
    >hsa-miR-199a-3p 60100 88733
    >hsa-miR-199b-3p 60100 88733
    >hsa-miR-221-3p 64926 67229
    >hsa-let-7g-5p 41642 45398
    >hsa-miR-103a-3p 32894 29542
    >hsa-miR-21-5p 11757 13865
    >hsa-let-7i-5p 16907 18536
    >hsa-miR-191-5p 16334 15549
    >hsa-miR-185-5p 19671 17588

    When I want to draw a heatmap with this database I found that there are only two colors in the pictures.


    Below is my code

    HTML Code:
    library(gplots)
    
    myheatcol <- redgreen(75)
    
    hr <- hclust(as.dist(1-cor(t(b), method="pearson")), method="complete")
    
    hc <- hclust(as.dist(1-cor(b, method="spearman")), method="complete")
    
    mycl <- cutree(hr, h=max(hr$height)/1.5); 
    
    mycolhc <- rainbow(length(unique(mycl)), start=0.1, end=0.9); 
    
    mycolhc <- mycolhc[as.vector(mycl)]
    
    heatmap.2(as.matrix(b), Rowv=as.dendrogram(hr), Colv=as.dendrogram(hc), col=myheatcol, scale="row", density.info="none", trace="none", RowSideColors=mycolhc,key.xlab="",margin=c(6, 6))

    Anyone can give me some suggestions?
    Attached Files

  • #2
    Is normal, you are using scale="row", so the values in each row are centered and scaled. With two samples, you wil get only two colours.

    Try with scale="none", or to add more samples in your dataset (maybe replicates are usefull)

    Paolo

    Comment


    • #3
      Thank you very much for your suggestion, Paolo.

      It's working when I using the follow command

      HTML Code:
      heatmap.2(as.matrix(log10(b)),Colv=as.dendrogram(hc), breaks=c(seq(-3,1,length=100),seq(1,3,length=100),seq(3,6,length=100)),col=redgreen(299), scale="none", density.info="none", trace="none",key.xlab="",margin=c(6, 6),symm=F,symkey=F,symbreaks=T)
      But, the heatmap seem very similar between these two group.

      If another two groups are added, the difference seem to be more significantly.


      Any one have some good suggestions?
      Attached Files

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Yesterday, 11:49 AM
      0 responses
      15 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-24-2024, 08:47 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      61 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      60 views
      0 likes
      Last Post seqadmin  
      Working...
      X