Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emolinari
    Member
    • May 2013
    • 47

    #1

    spearman correlation heatmap for RNA-seq

    Hi All!!!

    I am trying to draw a correlation heatmap for my RNA-seq data. I would like to input the whole transcriptome of each sample (n=20) and see the similarities of each dataset using pearson and spearman correlations.
    I have some issues in running my script on R: I could do it for a small dataset (300 genes) but not for the whole transcriptome...it takes forever and simply doesn't produce anything after 20 minutes!


    Can anyone help with this?

    Thanks!
    Manu
    here is my script (for spearman):

    `cumulus_cluster` <- read.csv("transcriptome_corr.csv")
    data.raw<- `cumulus_cluster`
    data<-data.matrix(data.raw)

    genes<-data[,2:15220]

    install.packages("gplots")

    library("gplots")

    data.corr<-cor(genes,method="spearman")

    heatmap.2(data.corr)
    > sessionInfo()
    R version 3.2.1 (2015-06-18)
    Platform: x86_64-apple-darwin13.4.0 (64-bit)
    Running under: OS X 10.10.3 (Yosemite)

    locale:
    [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

    attached base packages:
    [1] stats graphics grDevices utils datasets methods base

    other attached packages:
    [1] reshape2_1.4.1 ggplot2_1.0.1 edgeR_3.10.2 limma_3.24.13

    loaded via a namespace (and not attached):
    [1] Rcpp_0.11.6 digest_0.6.8 MASS_7.3-42 grid_3.2.1 plyr_1.8.3
    [6] gtable_0.1.2 magrittr_1.5 scales_0.2.5 stringi_0.5-5 proto_0.3-10
    [11] tools_3.2.1 stringr_1.0.0 munsell_0.4.2 colorspace_1.2-6
  • EarlyAdapter
    Junior Member
    • Apr 2010
    • 2

    #2
    heatmap alternative in R

    Hi emolinari,

    I generate correlation and hierarchical clustering heatmaps using the pheatmap package. I find it very flexible and fairly intuitive (well, for R users, to be fair).

    The default behavior is to cluster data but it can also be set up for basic correlation.

    library(pheatmap)
    counts<-read.csv("norm.count.data",header=T,sep="\t")
    data<-counts[-1]
    pheatmap(cor(data))


    links:
    Implementation of heatmaps that offers more control over dimensions and appearance.

    https://www.biostars.org/p/66079/

    Comment

    • emolinari
      Member
      • May 2013
      • 47

      #3
      Originally posted by EarlyAdapter View Post
      Hi emolinari,

      I generate correlation and hierarchical clustering heatmaps using the pheatmap package. I find it very flexible and fairly intuitive (well, for R users, to be fair).

      The default behavior is to cluster data but it can also be set up for basic correlation.

      library(pheatmap)
      counts<-read.csv("norm.count.data",header=T,sep="\t")
      data<-counts[-1]
      pheatmap(cor(data))


      links:
      Implementation of heatmaps that offers more control over dimensions and appearance.

      https://www.biostars.org/p/66079/
      Hi EarlyAdapter,

      I used Pheatmap recently too, and I really like it. In my opinion makes way better heat maps than heatmap.2. Also, I figured out the mistake in my plot -rows and columns were inverted...silly!
      Thanks for the heads up!
      Manu

      Comment

      • daanum
        Member
        • Nov 2015
        • 24

        #4
        Hi,

        How do I interpret the image of a hierarchical tree attached here?
        The tree is created with euclidean distance using complete linkage method.

        Thanks.
        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
        17 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...