bedops

Perform set and statistical operations on genomic intervals

brewmacoslinux
Try with needOr install directly
Source

About

Set and statistical operations on genomic data of arbitrary scale

Commands

bedopsbedmapclosest-featuresbedextractwig2bedbed2wigbam2bedgff2bedgtf2bedvcf2bedconvert2bed

Examples

Merge overlapping genomic intervals from a BED file$ bedops --merge input.bed > merged.bed
Find intersection of two BED files$ bedops --intersect file1.bed file2.bed > intersection.bed
Map elements from one BED file to another and compute statistics$ bedmap --echo --mean reference.bed query.bed > mapped_output.bed