Tools to calculate coverage of a bam file window by window
1
0
Entering edit mode
17 months ago

Hi there,

I am looking for a tool that scans an input bam file window by window (by window I mean consecutive counting bins of constant size, e.g. 10kb) and outputs the total or average coverage in percent per window. What would be the best way to do this? I've been looking at gatk CollectReadCounts, samtools coverage and DeepTools bamcoverage.

Thanks!

samtools deeptools bam gatk • 964 views
ADD COMMENT
3
Entering edit mode
17 months ago
LChart 3.9k

mosdepth (https://github.com/brentp/mosdepth) is a fast tool to do this; and you can specify -b 10000 to run on 10kb windows, instead of (like GATK or FeatureCounts etc) needig to create and pass in a binned .bed file.

ADD COMMENT
0
Entering edit mode

thanks so much, I'll have a look!

ADD REPLY

Login before adding your answer.

Traffic: 2956 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