Unconfigured Ad

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

    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
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM
      • SEQadmin2
        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
        by SEQadmin2


        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
        ...
        06-02-2026, 10:05 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Today, 05:37 AM
      0 responses
      5 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-26-2026, 11:10 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      50 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      109 views
      0 reactions
      Last Post SEQadmin2  
      Working...