Skip to content

Extract shared helpers for reference_name and next_reference_name#1390

Draft
nh13 wants to merge 1 commit into
pysam-developers:masterfrom
nh13:nh13/consolidate-reference-name
Draft

Extract shared helpers for reference_name and next_reference_name#1390
nh13 wants to merge 1 commit into
pysam-developers:masterfrom
nh13:nh13/consolidate-reference-name

Conversation

@nh13

@nh13 nh13 commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extract _get_reference_name() and _resolve_reference_id() cdef helpers to consolidate duplicated logic between reference_name and next_reference_name getters and setters
  • The next_reference_name setter preserves the "=" special case (set mate tid to self tid)

Test plan

  • Run REF_PATH=: pytest tests/AlignedSegment_test.py tests/AlignmentFile_test.py -v

AI disclosure: This PR was AI-assisted using Claude Code. The issue was identified via AI-guided code review, and the implementation was drafted by AI with human review and approval.

@nh13 nh13 force-pushed the nh13/consolidate-reference-name branch from 4726aed to c37329a Compare March 2, 2026 05:36
@nh13 nh13 marked this pull request as draft March 3, 2026 06:21
@nh13 nh13 changed the title refactor: extract shared helpers for reference_name and next_reference_name Extract shared helpers for reference_name and next_reference_name Mar 3, 2026
@nh13 nh13 force-pushed the nh13/consolidate-reference-name branch from c37329a to 9899646 Compare March 3, 2026 06:24
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