FINNGEN / autoreporting

MIT License
0 stars 1 forks source link

Fix region pruning: Change from dict to Region, fix algorithm #181

Closed Lipastomies closed 3 years ago

Lipastomies commented 3 years ago

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.