Skip to content

Add public set_alignment_scope setter#3

Open
cjfields wants to merge 1 commit into
COMBINE-lab:mainfrom
HPCBio:feat/set-alignment-scope
Open

Add public set_alignment_scope setter#3
cjfields wants to merge 1 commit into
COMBINE-lab:mainfrom
HPCBio:feat/set-alignment-scope

Conversation

@cjfields

Copy link
Copy Markdown
Contributor

Summary

Adds a set_alignment_scope method to WavefrontAligner, matching the existing method-based configuration API (set_max_alignment_steps, set_alignment_free_ends).

Why

The alignment_scope field is public, but switching on full-CIGAR computation currently requires writing the field directly:

aligner.alignment_scope = AlignmentScope::ComputeAlignment;

while the other alignment-configuration knobs are exposed as setters. This adds the matching method so callers can opt into CIGAR output (ComputeAlignment) through the same idiom:

aligner.set_alignment_scope(AlignmentScope::ComputeAlignment);

Notes

Small, additive change (one method); no behavior change. Encountered while embedding the library as a pairwise aligner — the default scope is ComputeScore, so a setter makes the "I also want the CIGAR" path discoverable.

The `alignment_scope` field is public, but configuring it required setting
the field directly; the other alignment-configuration knobs
(`set_max_alignment_steps`, `set_alignment_free_ends`) are exposed as
methods. Add a matching `set_alignment_scope` so callers can switch on
CIGAR computation (`ComputeAlignment`) through the same method-based API.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cjfields

Copy link
Copy Markdown
Contributor Author

Just a small comment, this isn't a high priority PR since there is a noted work-around, just a nice-to-have so it's consistent with the other setters.

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