Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dwb0211
    Member
    • Nov 2008
    • 11

    #1

    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
  • paolo.kunder
    Member
    • Aug 2011
    • 93

    #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

    • dwb0211
      Member
      • Nov 2008
      • 11

      #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

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 11:13 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      35 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      42 views
      0 reactions
      Last Post SEQadmin2  
      Working...