Skip to content

Fix remove_variant to use position1 instead of position#260

Merged
joshfactorial merged 3 commits into
developfrom
fix/contig-variants-remove-variant
Apr 7, 2026
Merged

Fix remove_variant to use position1 instead of position#260
joshfactorial merged 3 commits into
developfrom
fix/contig-variants-remove-variant

Conversation

@joshfactorial
Copy link
Copy Markdown
Collaborator

variant.position is not defined on base variants; variant.position1 is the correct attribute. This caused remove_variant to silently no-op on every call, leaving stale variants in ContigVariants.

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

joshfactorial and others added 3 commits April 4, 2026 23:20
variant.position is not defined on base variants; variant.position1 is
the correct attribute. This caused remove_variant to silently no-op on
every call, leaving stale variants in ContigVariants.

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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Copy link
Copy Markdown
Collaborator Author

Merged with the other bug pr because they were related.

@joshfactorial joshfactorial merged commit 46d96fd into develop Apr 7, 2026
1 check passed
@joshfactorial joshfactorial deleted the fix/contig-variants-remove-variant branch April 18, 2026 05:32
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