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
          Understanding Genetic Influence on Infectious Disease
          by seqadmin




          During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

          Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
          09-09-2024, 10:59 AM
        • seqadmin
          Addressing Off-Target Effects in CRISPR Technologies
          by seqadmin






          The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
          08-27-2024, 04:44 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Today, 06:25 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, Yesterday, 01:02 PM
        0 responses
        12 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-18-2024, 06:39 AM
        0 responses
        14 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-11-2024, 02:44 PM
        0 responses
        14 views
        0 likes
        Last Post seqadmin  
        Working...
        X