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.
Unconfigured Ad
Collapse
X
-
Dear Charlesli,
You may try the featureCounts function included in the bioconductor package Rsubread - http://bioconductor.org/packages/rel.../Rsubread.html
Cheers,
Wei
Comment
-
-
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
-
Latest Articles
Collapse
-
by SEQadmin2
Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.
The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
...-
Channel: Articles
06-02-2026, 10:05 AM -
-
by SEQadmin2
With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.
Introduction
Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...-
Channel: Articles
05-22-2026, 06:42 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Sequencing the Two-Toed Sloth Genome Reveals Jumping Genes Tied to Its Extreme Metabolism
by SEQadmin2
Started by SEQadmin2, Today, 11:58 AM
|
0 responses
5 views
0 reactions
|
Last Post
by SEQadmin2
Today, 11:58 AM
|
||
|
Started by SEQadmin2, 06-05-2026, 10:09 AM
|
0 responses
21 views
0 reactions
|
Last Post
by SEQadmin2
06-05-2026, 10:09 AM
|
||
|
Started by SEQadmin2, 06-04-2026, 08:59 AM
|
0 responses
34 views
0 reactions
|
Last Post
by SEQadmin2
06-04-2026, 08:59 AM
|
||
|
Started by SEQadmin2, 06-02-2026, 12:03 PM
|
0 responses
55 views
0 reactions
|
Last Post
by SEQadmin2
06-02-2026, 12:03 PM
|
Comment