Entering edit mode
4.4 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?
May I know how to determine the number of subreads that span a certain region besides counting the subreads manually using the IGV?
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)
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.