Originally, I started working on this because in compare.py this was called with the chrom column of the data , chich is not usually "#chrom". I changed the input type to be a namedtuple, so I can't do the same mistake again - The type conversion needs to be done for things to work.
I also changed the algorithm from one that merely decreases the amount of regions into an optimal one, which results in no overlapping regions.
Originally, I started working on this because in compare.py this was called with the chrom column of the data , chich is not usually "#chrom". I changed the input type to be a namedtuple, so I can't do the same mistake again - The type conversion needs to be done for things to work.
I also changed the algorithm from one that merely decreases the amount of regions into an optimal one, which results in no overlapping regions.