I have a Grange object which contains coordinates.
I want to be able to remove the overlapping coordinates within the object following this rule :
End(B) > Start(A) & End(A) > Start(B) so I remove Coordinate B
For example :
Chrom Start End Name Score Strand scaffold_98 8309 8313 . . -
scaffold_98 8311 8327 . . - scaffold_98 8820 8825 . . - scaffold_98 8948 8952 . . -
In this case I want to be able to remove the coordinate (8311,8327) because it overlaps with the previous coordinate.