arq5x / bedtools

A powerful toolset for genome arithmetic.
http://code.google.com/p/bedtools/
GNU General Public License v2.0
140 stars 85 forks source link

Bedtools intersect behaviour when crossing 0bp features #141

Open Marmach opened 5 years ago

Marmach commented 5 years ago

Hi Maybe this is a silly question, but I recently found that bedtools intersect (v2.19.0) behaves weird when 0bp (those with identical start and end coordinates) features are compared. For example, an intersect of: A.bed containing chr1 2 2 B.bed containing chr1 3 3

would actually return: C.bed containing chr1 3 3

instead of returning nothing, which is a bit confusing and also complicates matters in some uses. Attached is an example screenshot from IGV.

intersect