Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • babykooo
    Junior Member
    • Mar 2011
    • 5

    #1

    How to plot each ChIPseq peak ??

    Dear all,
    I have ChIP-seq data now and trying to make plot for each peak. I have .bam file and peak regions. how can I make coverage plot (RPKM) for each peak?

    For example, I have a peak covers genome from 1kb to 1.5kb, so what I want is a line plot shows the reads coverage over the region, Y axis is RPKM and X axis is genome region from 1 to 1.5 kb, like draft in attached picture. preferably, I will plot IP sample with negative control together.

    I didn't find good program to do this, so if you know any program, or you have any suggestion, please tell me. Thank you very much!

    Best,

    /Kun
    Attached Files
  • SylvainL
    Senior Member
    • Feb 2012
    • 180

    #2
    I think what you want is mostly the coverage of each bp of your genome (then you have to use RPM if you want to normalize different samples).

    I would use genomeCoveragedBed to generate bedgraphs. Then, with awk you can easily normalize the values considering the number of mapped reads...

    Afterwards, either you load the resulting files in a genome browser like igv, or you can generate yourself the pictures of your regions of interest (I personnally use R for this).

    Good thing with genomeCoveragedBed is you can make pictures showing the coevarge of each strand (-strand option).

    s.

    Comment

    • babykooo
      Junior Member
      • Mar 2011
      • 5

      #3
      Thank you, SylvainL. It is what I want to have.
      I will start with genomeCoveragedBed, but I am not very familiar with R, is there any tools in R package can do plot?

      Comment

      • dariober
        Senior Member
        • May 2010
        • 311

        #4
        Originally posted by babykooo View Post
        Dear all,
        I have ChIP-seq data now and trying to make plot for each peak. I have .bam file and peak regions. how can I make coverage plot (RPKM) for each peak?
        I wrote a program for that, which I mentioned here http://seqanswers.com/forums/showthr...965#post160965. See if it helps... The minimal syntax is

        Code:
        genomeGraphs -b peaks.bed -i aln_1.bam aln_2.bam aln_n.bam --rpm
        And for each interval in peaks.bed you get a profile figure in pdf format.

        Comment

        • babykooo
          Junior Member
          • Mar 2011
          • 5

          #5
          Hi dariober, I still like to have a line graph, but I will try your program also, thank you!.

          Comment

          • dariober
            Senior Member
            • May 2010
            • 311

            #6
            Originally posted by babykooo View Post
            Hi dariober, I still like to have a line graph, but I will try your program also, thank you!.
            Hi- if you just want to have lines you can avoid filling in the area under the coverage profile with '--col_track NA --col_track_rev NA'. To have the line of a colour of your choice use "--col_line". Like:

            Code:
            genomeGraphs -i aln1.bam aln2.bam -b mypeaks.bed --col_track NA --col_track_rev NA --col_line red
            Also, if you set '--tmpdir mytmpdir' the files used for plotting will be saved into "mytmpdir" so you can use your scripts to plot them.

            (By the way I moved genomeGraphs here https://github.com/dariober/genomeGraphs)

            Comment

            • babykooo
              Junior Member
              • Mar 2011
              • 5

              #7
              Originally posted by dariober View Post
              I wrote a program for that, which I mentioned here http://seqanswers.com/forums/showthr...965#post160965. See if it helps... The minimal syntax is

              Code:
              genomeGraphs -b peaks.bed -i aln_1.bam aln_2.bam aln_n.bam --rpm
              And for each interval in peaks.bed you get a profile figure in pdf format.
              Hi Dariober, I tried you code, but got error message, you can see the attached message. I didn't use -o option. any suggestion for me?
              Attached Files

              Comment

              • dariober
                Senior Member
                • May 2010
                • 311

                #8
                Originally posted by babykooo View Post
                Hi Dariober, I tried you code, but got error message, you can see the attached message. I didn't use -o option. any suggestion for me?
                Hi- I think the issue is that your default shell appears to be sh, which doesn't support "set -o pipefail" (this is part of the commands internally executed). I changed the code to make python explicitly use bash instead of sh.

                Would you mind re-downloading the package from https://github.com/dariober/genomeGraphs and reinstall it?

                Keep me posted if you get into troubles... I'll try to help!

                Dario

                Comment

                • babykooo
                  Junior Member
                  • Mar 2011
                  • 5

                  #9
                  Originally posted by dariober View Post
                  Hi- I think the issue is that your default shell appears to be sh, which doesn't support "set -o pipefail" (this is part of the commands internally executed). I changed the code to make python explicitly use bash instead of sh.

                  Would you mind re-downloading the package from https://github.com/dariober/genomeGraphs and reinstall it?

                  Keep me posted if you get into troubles... I'll try to help!

                  Dario
                  Hi Dario
                  It works this time! Now I can try to change some parameters to plot. Thank you very much!

                  /Kun

                  Comment

                  • dariober
                    Senior Member
                    • May 2010
                    • 311

                    #10
                    Originally posted by babykooo View Post
                    Hi Dario
                    It works this time! Now I can try to change some parameters to plot. Thank you very much!

                    /Kun

                    Cool thanks for letting me know. If you want to play with the graphic parameters I would suggest you plot just one or few bed intervals to start with. So you don't have to wait too long for the program to finish. E.g., plot only first two peaks:

                    Code:
                    head -n 2 fileWithManyPeaks.bed \
                    | genomeGraphs -b - -i aln_1.bam

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                      by SEQadmin2



                      CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                      Despite this, “CRISPR helped turn genome editing from a specialized technique into
                      ...
                      07-31-2026, 11:01 AM
                    • 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

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Today, 07:41 AM
                    0 responses
                    9 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 08-03-2026, 10:13 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-31-2026, 02:55 AM
                    0 responses
                    36 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-24-2026, 12:17 PM
                    0 responses
                    25 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...