Skip to content

Fix/contig variants check if ins - #259

Merged
joshfactorial merged 1 commit into
fix/contig-variants-remove-variantfrom
fix/contig-variants-check-if-ins
Apr 6, 2026
Merged

Fix/contig variants check if ins#259
joshfactorial merged 1 commit into
fix/contig-variants-remove-variantfrom
fix/contig-variants-check-if-ins

Conversation

@joshfactorial

Copy link
Copy Markdown
Collaborator

Fixing a small bug in contig var and added tests, composed with help from Claude.

Insertion.contains() expects an int (a reference position), but
check_if_ins was passing the full variant object. This caused the method
to always return None, silently failing to detect variants overlapping
an insertion span.

Adds regression tests in tests/test_variants/test_check_if_ins.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@joshfactorial
joshfactorial changed the base branch from main to develop April 6, 2026 00:32
@joshfactorial
joshfactorial changed the base branch from develop to fix/contig-variants-remove-variant April 6, 2026 00:35
@joshfactorial
joshfactorial merged commit 0be5cfd into fix/contig-variants-remove-variant Apr 6, 2026
1 check passed
@joshfactorial
joshfactorial deleted the fix/contig-variants-check-if-ins branch April 6, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant