Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

  • #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:

    Comment


    • #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:

      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


      • #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

        • seqadmin
          Strategies for Sequencing Challenging Samples
          by seqadmin


          Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
          03-22-2024, 06:39 AM
        • seqadmin
          Techniques and Challenges in Conservation Genomics
          by seqadmin



          The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

          Avian Conservation
          Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
          03-08-2024, 10:41 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 06:37 PM
        0 responses
        11 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, Yesterday, 06:07 PM
        0 responses
        10 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 03-22-2024, 10:03 AM
        0 responses
        51 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 03-21-2024, 07:32 AM
        0 responses
        67 views
        0 likes
        Last Post seqadmin  
        Working...
        X