bedtools2 icon indicating copy to clipboard operation
bedtools2 copied to clipboard

zero length intervals are not handled properly.

Open arq5x opened this issue 9 years ago • 3 comments

cat test.bed
chr1    10  20
chr1    20  20

bedtools merge -i test.bed
chr1    10  21

arq5x avatar Feb 10 '16 05:02 arq5x

Also seems to be incorrectly applying 1bp extensions for length 1 (start==end) in GFF.

arq5x avatar Feb 10 '16 05:02 arq5x

I experienced the same thing with files containing exactly the same lines:

cat A.bed
chr1    210 210
chr1    210 210

bedtools merge -i A.bed
chr1    209 211

However:

cat B.bed 
chr1    210 210

bedtools merge -i B.bed 
chr1    210 210

Any planed correction of this bug in a close release ? Thanks

retrogenomics avatar Jul 20 '16 14:07 retrogenomics

Hello, I am experiencing the same issue:

cat test.bed 
chr1       119915306       119915306
..
chr1       119916711       119916711

bedtools merge -i test.bed | grep 11991671
chr1    119915305       119916712

is there any plan to fix this issue, any way to solve it? Thanks

FedericaBrando avatar Apr 19 '24 14:04 FedericaBrando