Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • afreund
    Junior Member
    • Jan 2012
    • 4

    Pearson correlation between replicates

    Hi all,

    I'm analyzing some ChIP-seq data, and I'd like to see how different my replicate samples are (pairwise comparison only is fine). To be clear, I want to compare the read density across the whole genome, not just the peaks. I know the process of comparing peaks has been covered in other threads, but I couldn't find a description of how to generate a simple scatterplot of read density at all genomic positions (after normalization), with the corresponding pearson correlation coefficient. It seems to be a common form of analysis, and it looks like people generally use ~200 bp windows. It also seems important to eliminate regions with no reads in either sample, to avoid artificially increasing the correlation. Any suggestions on how to tackle this would be much appreciated!

    I'm dealing with FASTQ files, already mapped to hg19.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Sounds like you'll be needing R and one of the packages from Bioconductor that can handle SAM/BAM files (unless you prefer to use the C or whatever API).

    Comment

    • afreund
      Junior Member
      • Jan 2012
      • 4

      #3
      Thanks, that's definitely a good start, although a little more detail would be helpful. I have used R in the past, and I've looked around Bioconductor's website, but I'm still not sure how to go forward.

      Does anyone know if Galaxy's pre-loaded SAMtools offer a way to do this?

      Comment

      • bioinfosm
        Senior Member
        • Jan 2008
        • 483

        #4
        thats interesting. Why would you need that correlation? why not just use a statistical model, like the ones in useq or macs, and when you input the replicates as case and control, obtain not many significantly different regions.
        --
        bioinfosm

        Comment

        • afreund
          Junior Member
          • Jan 2012
          • 4

          #5
          Hi bioinfosm,

          I'm fairly new to this, so correct me if I'm wrong, but although the two approaches are superficially similar (i.e. they both are a measure of the similarity between two samples), the Pearson correlation coefficient (PCC) is a much more robust measurement because it doesn't rely on an arbitrary significance cutoff, as well as being more quantitative, allowing for simpler comparisons. I'd like to assess the reproducibility of my samples between experiments, conditions, etc, and I believe it's easier to do that with the PCC. From what I've read, it's a fairly standard approach.

          Comment

          • kopi-o
            Senior Member
            • Feb 2008
            • 319

            #6
            I think it's very easy to go wrong with simple Pearson correlations on genome-wide ChIP-seq tag count profiles. I would advise to go for something like this recent method: http://genomebiology.com/2012/13/3/R16/abstract

            Note, I haven't tried it myself yet

            Comment

            • tir_al
              Member
              • Sep 2010
              • 22

              #7
              If you want to do genome wide correlation in R, you will need 2 bioconductor packages: RSamtools and GenomicRanges, and also the lengths for the chromosomes from the corresponding genome.

              The pipeline should go something like this:

              readBam -> convert bam to GRanges -> extend the reads (resize function) -> make the coverage (coverage function). Now you need to smooth the coverage a bit because, otherwise the resulting vector will be to big. This can be done easily using the first function in the Rle tips and tricks manual.
              Repeat that for each sample, put all of the data in a data frame, and use the cor function on the resulting object.

              I would advise you to go chromosome by chromosome (if you have an indexed bam file), and aggregate the data only before doing the correlation analysis.

              If you want to do a comparison of peak regions, a very cool method was published in Bioinformatics recently: An effective statistical evaluation of ChIPseq dataset similarity.

              Cheers!

              Comment

              • afreund
                Junior Member
                • Jan 2012
                • 4

                #8
                Thanks very much, tir_al, I'll give that a try!

                Comment

                • archi
                  Member
                  • Apr 2014
                  • 16

                  #9
                  Hi all, I'm also doing analysis of some nextgen data. right now,I'm handling fastq files of three experimental replicates and want to calculate their correlation(i.i correlation of the three replicates).
                  Can someone please guide on how to go about this in R using or without using Bioconductor.

                  I'm from a math background and know how to calculate pearson correlation coefficient between two set of numbers,but how to do that for fastq data??


                  thanks in advance.

                  Comment

                  • dpryan
                    Devon Ryan
                    • Jul 2011
                    • 3478

                    #10
                    The short answer is that you don't.

                    Firstly, map the reads to the appropriate genome. Then perform whatever type of quantification you need (for ChIP-seq, this would be peak calling; for RNA-seq this would be counting reads per gene/transcript/whatever; etc.) and then calculate the correlation from the resulting metrics.

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                      by SEQadmin2


                      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                      The systematic characterization of the human proteome has
                      ...
                      07-20-2026, 11:48 AM
                    • SEQadmin2
                      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                      by SEQadmin2



                      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                      ...
                      07-09-2026, 11:10 AM
                    • SEQadmin2
                      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                      by SEQadmin2



                      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                      07-08-2026, 05:17 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 07-20-2026, 11:10 AM
                    0 responses
                    18 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-13-2026, 10:26 AM
                    0 responses
                    32 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-09-2026, 10:04 AM
                    0 responses
                    43 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-08-2026, 10:08 AM
                    0 responses
                    29 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...