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
                      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                      by SEQadmin2



                      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                      ...
                      10-14-2026, 09:55 AM
                    • SEQadmin2
                      New Genomics Technologies Take Aim at Long-Standing Limits
                      by SEQadmin2


                      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                      ...
                      09-28-2026, 10:25 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Yesterday, 11:13 AM
                    0 responses
                    16 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, Yesterday, 10:48 AM
                    0 responses
                    17 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-15-2026, 10:52 AM
                    0 responses
                    35 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-14-2026, 05:39 AM
                    0 responses
                    42 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...