Reference Code backup Executable files
Reports the count of alignments from multiple position-sorted and indexed BAM files that overlap intervals in a BED file. Specifically, for each BED interval provided, it reports a separate count of overlapping alignments from each BAM file.
bedtools multicov [OPTIONS] -bams aln.1.bam aln.2.bam ... aln.n.bam -bed <bed/gff/vcf>
This tool is part of the bedtools
suite.
-f 0.90
and -r is used, this requires that B overlap 90% of A and A also overlaps 90% of B.By default, multicov
will report the count of alignments in each input BAM file that overlap.
$ cat ivls-of-interest.bed chr1 0 10000 ivl1 chr1 10000 20000 ivl2 chr1 20000 30000 ivl3 chr1 30000 40000 ivl4 $ bedtools multicov-bams aln1.bam aln2.bam aln3.bam
-bed ivls-of-interest.bed
chr1 0 10000 ivl1 100 2234 0 chr1 10000 20000 ivl2 123 3245 1000 chr1 20000 30000 ivl3 213 2332 2034 chr1 30000 40000 ivl4 335 7654 0
The output of multicov
reflects a distinct report of the overlapping alignments for each record in the -bed file. In the example above, each line of the output reflects
In the example above, the output consists of 7 columns: the first four of which are the columns from the -bed file and the last 3 are the count of overlapping alignments from the 3 input -bam files. The order of the counts reflects the order of the files given on the command line.