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.
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
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 seqadmin
Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...-
Channel: Articles
04-04-2024, 04:25 PM -
-
by seqadmin
Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...-
Channel: Articles
03-22-2024, 06:39 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, 04-11-2024, 12:08 PM
|
0 responses
31 views
0 likes
|
Last Post
by seqadmin
04-11-2024, 12:08 PM
|
||
Started by seqadmin, 04-10-2024, 10:19 PM
|
0 responses
32 views
0 likes
|
Last Post
by seqadmin
04-10-2024, 10:19 PM
|
||
Started by seqadmin, 04-10-2024, 09:21 AM
|
0 responses
28 views
0 likes
|
Last Post
by seqadmin
04-10-2024, 09:21 AM
|
||
Started by seqadmin, 04-04-2024, 09:00 AM
|
0 responses
53 views
0 likes
|
Last Post
by seqadmin
04-04-2024, 09:00 AM
|
Comment