Question: Genome coverage within specified regions
0
gravatar for ilovesuperheroes1993
12 months ago by
ilovesuperheroes19930 wrote:

Hi, I have a bed file containing the coordinates of certain regions of the genome. I want to get the genome coverage of these regions at each base position (i,e, similar to using -d option in bedtools genomecov).

example bed file

chr1 100 200 chr5 250 300

I want the output in the following manner:

chr1 100 "coverage at this position" chr1 101 "coverage" chr1 102 "coverage" . . . chr1 199 "coverage" chr1 200 "coverage" chr5 250 "coverage" chr5 251 "coverage" ...and so on

The genomecov of bedtools does this for the entire genome. Is there any way to get the coverage within the regions specified only?

coverage genomecov bedtools • 312 views
ADD COMMENTlink modified 12 months ago by ATpoint36k • written 12 months ago by ilovesuperheroes19930

https://bedtools.readthedocs.io/en/latest/content/tools/coverage.html

bedtools coverage [OPTIONS] -a <bed/gff/vcf> -b <bed/gff/vcf>
ADD REPLYlink modified 12 months ago • written 12 months ago by 2nelly210
1
gravatar for ATpoint
12 months ago by
ATpoint36k
Germany
ATpoint36k wrote:

Mosdepth for the win (https://github.com/brentp/mosdepth ):

-b --by <bed|window> optional BED file or (integer) window-sizes.

ADD COMMENTlink modified 12 months ago by lieven.sterck8.3k • written 12 months ago by ATpoint36k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1334 users visited in the last hour