biocpp / biocpp-io

BioC++ Input/Output library
https://biocpp.github.io
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

[feature] add genomic_region #42

Closed h-2 closed 2 years ago

h-2 commented 2 years ago

We might need to discuss the position notation again. I wanted to stay as close as possible to the format, but this becomes really messy when we have regions (added here) and want to compute an overlap and don't know which notation is being used.

It is also possible to add a template parameter to this struct to switch the behaviour of the overlap algorithms between half-open and closed intervals, but that also adds complexity that I would like to avoid.

My proposal right now:

OK?