Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vanbug
    Member
    • Aug 2011
    • 11

    #1

    chip-seq read extension (36bp->200bp)

    Hola!

    I was wandering if there's any command line tools (bedtools, samtools) other than R packages, to extend the reads from the base length b/w 36-50 bp to 200bp strand specific. I dont want to use R, as I have to load the file in the environment which is time consuming, I can make awk script easily, but there might be something present already. I want to do it because if I generate a coverage(bedGraph file) directly collapsing the bam file, I get small continuous mountains, which are more or less the referring to single gene target. (Look at the attached picture)

    Also, another question is, does the chip-seq data should be normalized (same number of reads in control and sample) before calling peaks in Macs. For me, the mockIP control always less than 2/3rd the number of reads of control. I did a test, the number of positive peaks went down by 30-40% and -ve peaks came up by 30% after using Macs on normalized data.

    Thanks
    Sukhi
    Attached Files
  • ETHANol
    Senior Member
    • Feb 2010
    • 308

    #2
    Most genome browsers don't like it when your reads extend beyond the end of chromosomes which will get a lot more of when you extend your reads. See:
    I’ve been spending my down time this last week looking into ways to streamline my data processing. Basically that has meant learning how to write scripts. This is a little script I just wrote that …

    The second script does exactly what you are asking for.
    --------------
    Ethan

    Comment

    • vanbug
      Member
      • Aug 2011
      • 11

      #3
      Thanks for the reply.
      There is ucsc tool called bedclip which sorts the read off-end of chromosome problem.

      I was tried using your script but I am getting "Unrecognized character \xE2" problems while executing it, I checked it and I think its because of utf encoding problems. Would providing a download link for the original source file, solve the problem!!.

      Also, in this script do reconstruct the bed file after extension because the some reads in coverage will overlap. I am working with bedGraphs not bed. What do you think.

      Eg:
      Chr1 40 50 4
      Chr2 110 150 3


      After adding 150 to both co-ordinates, the reads will overlap and should be summed up (4th column-density), if I am not wrong.

      Thanks

      Comment

      • ETHANol
        Senior Member
        • Feb 2010
        • 308

        #4
        I was looking all over for a script that did what bedclip did. Thanks for the heads up. Anyway, it was a good motivation to learn some Perl.

        It seems hosting code on wordpress.com is not trivial. I uploaded the file here:
        ethanomics files. Full list of files for ethanomics, Random NGS scripts
        --------------
        Ethan

        Comment

        • ETHANol
          Senior Member
          • Feb 2010
          • 308

          #5
          It appears there is a UCSC utility that does what you are looking for as well called bedExtendRanges.
          --------------
          Ethan

          Comment

          • vanbug
            Member
            • Aug 2011
            • 11

            #6
            Sorted

            Hey,

            Your perl script works fine for me , but the chromosome off-end clipping seems not to be the perfect one, but bedclip works fine as well.
            I tried using bedExtendRanges but needs some database configuration, so dropped it.
            So, I am currently using your script which extends the reads directionally, then bedClip to clip the off-end chromosome co-ordinates and mergeBed from bedTools to merge the overlapping reads.

            Works good.

            Cheers
            Sukhdeep Singh

            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, 10-22-2026, 11:13 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            38 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            44 views
            0 reactions
            Last Post SEQadmin2  
            Working...