Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • charlesli
    Junior Member
    • Mar 2013
    • 3

    #1

    How to quantify reads at a location?

    I have two bam files (H3K56ac ChIP and input) that I want to use to score regions (promoters) that I have defined in a bed file. I've been trying to use seqMINER to do this, but i'm pretty sure there is an easier method? Suggestions for a good tool to do this would be much appreciated. Thanks.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Genomecov from Bedtools.

    Comment

    • shi
      Wei Shi
      • Feb 2010
      • 236

      #3
      Dear Charlesli,

      You may try the featureCounts function included in the bioconductor package Rsubread - http://bioconductor.org/packages/rel.../Rsubread.html

      Cheers,
      Wei

      Comment

      • AlexReynolds
        Member
        • Feb 2013
        • 45

        #4
        BEDOPS bedmap is useful for this task. This application takes elements that overlap other elements in UCSC BED files and applies operations to them (counting them, listing their IDs, calculating statistics from score column data, etc.).

        For this task, we can use bedmap --count to show the number of reads that overlap some regions of interest (promoters, distal elements, etc.).

        First, prepare your regions-of-interest with BEDOPS sort-bed:

        $ sort-bed unsortedRegions.bed > sortedRegions.bed

        This preparation step only has to be done once for any input to BEDOPS tools. This step allows BEDOPS tools to operate faster and with a lower memory profile than alternatives. Sorting only has to be done once, as BEDOPS tools export data in sorted order.

        Next, let's assume your reads are in BAM format. We can use BEDOPS bam2bed to convert this data to sorted BED, and we then pipe it to bedmap to apply the --count operation:

        $ bam2bed < reads.bam \
        | bedmap --echo --count sortedRegions.bed - \
        > answer.bed


        The file answer.bed contains results in the following format:

        [ region-1 ] | [ count of reads over region-1 ]
        [ region-2 ] | [ count of reads over region-2 ]
        ...
        [ region-N ] | [ count of reads over region-N ]


        If your regions are promoters, for example, then this result tells you how many reads are contained within each promoter's genomic coordinates, which you specify in sortedRegions.bed.

        The default overlap criterion is one base. In other words, one base of overlap between the read and region is sufficient for inclusion. You can adjust this overlap parameter with other options, if you need more stringency.

        Note that this result is a sorted BED file, as well, and can be piped to other BEDOPS tools (or other utilities which process BED data).
        Last edited by AlexReynolds; 04-29-2013, 03:18 PM.

        Comment

        • charlesli
          Junior Member
          • Mar 2013
          • 3

          #5
          bedops looks great. thanks for the detailed explanation. thanks to others for suggestions as well.

          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, 10:52 AM
          0 responses
          10 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          19 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-13-2026, 09:56 AM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-09-2026, 11:14 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Working...