how to determine number of subreads that spanned across certain region
1
0
Entering edit mode
3.3 years ago
wes ▴ 90

May I know how to determine the number of subreads that span a certain region besides counting the subreads manually using the IGV?

alignment • 700 views
ADD COMMENT
0
Entering edit mode
3.3 years ago

Here's one way to do a count on an ad-hoc region (replace values Z, A, and B, as desired):

$ bedmap --echo --count --delim '\t' <(echo -e "chrZ\tA\tB") <(bam2bed --reduced < reads.bam)

If you have a file of regions:

$ bedmap --echo --count --delim '\t' <(sort-bed regions.bed) <(bam2bed --reduced < reads.bam)
ADD COMMENT

Login before adding your answer.

Traffic: 3093 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6