fix: correct borders for vaf splitting (#545)
Description
This PR fixes the splitting logic for VAFRanges.
Previously, when an interval was split at a specific VAF value, the interval boundaries were not computed correctly if the split position is exactly equal to one of the existing borders.
The fix ensures that boundary conditions are handled properly when the split point lies exactly on an interval border.
QC
- The PR contains a test case for the changes or the changes are already covered by an existing test case.
- The documentation at https://github.com/varlociraptor/varlociraptor.github.io is updated in a separate PR to reflect the changes or this is not necessary (e.g. if the change does neither modify the calling grammar nor the behavior or functionalities of Varlociraptor).
Summary by CodeRabbit
- Bug Fixes
- Enhanced range boundary handling during split operations to correctly propagate exclusivity when splitting at specific boundary values. Updated singleton condition determination to be properly based on the actual updated range boundaries instead of the original range boundaries, thereby improving the overall accuracy of range calculations, especially in complex boundary scenarios.
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Varlociraptor
Varlociraptor implements a novel, unified fully uncertainty-aware approach to genomic variant calling in arbitrary scenarios.
Key features
Calling modes
For details, see the homepage: https://varlociraptor.github.io