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

        • kinpict.com
          Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by kinpict.com
          The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
          Today, 06:37 PM
        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2





          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
          10-30-2026, 06:46 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 11-12-2026, 07:59 AM
        0 responses
        27 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-05-2026, 09:25 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-03-2026, 11:54 AM
        2 responses
        56 views
        0 reactions
        Last Post kinpict.com  
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        175 views
        0 reactions
        Last Post SEQadmin2  
        Working...