Skip to content

162 visualise uncertainties in some way#179

Merged
sebschmi merged 8 commits into
mainfrom
162-visualise-uncertainties-in-some-way
May 11, 2026
Merged

162 visualise uncertainties in some way#179
sebschmi merged 8 commits into
mainfrom
162-visualise-uncertainties-in-some-way

Conversation

@sebschmi
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 11:13
@sebschmi sebschmi linked an issue May 11, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support in lib_tsshow for visualizing template-switch “equal cost” uncertainty ranges by introducing an “optional” inner-character rendering path and propagating EqualCostRange information from alignment results into the SVG output.

Changes:

  • Plumb EqualCostRange from lib_tsalign alignment events into lib_tsshow’s TemplateSwitch.
  • Add InnerChar::OptionalInner and logic to mark/insert optional inner characters to visualize the equal-cost range.
  • Render optional inner characters with distinct colors in SVG output and add a new FASTA test fixture.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test_files/twin_variable_length_ts.fa Adds a new twin-sequence FASTA fixture for variable-length TS cases.
lib_tsshow/src/ts_arrangement/template_switch.rs Extends TemplateSwitch to carry EqualCostRange.
lib_tsshow/src/ts_arrangement/source.rs Extracts equal_cost_range from alignment entrance events and stores it in TemplateSwitch.
lib_tsshow/src/ts_arrangement/inner.rs Introduces OptionalInner and attempts to inject/convert inner chars to visualize the equal-cost range.
lib_tsshow/src/ts_arrangement/index_types.rs Adds subtraction by signed offsets for strong index types.
lib_tsshow/src/ts_arrangement.rs Expands “interesting column” detection to include inner-sequence source columns.
lib_tsshow/src/svg.rs Adds distinct coloring for optional inner chars and updates copy_color API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib_tsshow/src/ts_arrangement/inner.rs Outdated
Comment thread lib_tsshow/src/ts_arrangement/inner.rs Outdated
Comment thread lib_tsshow/src/ts_arrangement.rs
Comment thread lib_tsshow/src/ts_arrangement.rs
Comment thread lib_tsshow/src/svg.rs
@sebschmi sebschmi enabled auto-merge May 11, 2026 11:47
@sebschmi sebschmi merged commit 334e568 into main May 11, 2026
28 checks passed
@sebschmi sebschmi deleted the 162-visualise-uncertainties-in-some-way branch May 11, 2026 11:49
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.

Visualise uncertainties in some way

2 participants