feat: dual-reference rendering for heterologous MSAs#4
Merged
Conversation
Adds variant-call ref / numbering-ref split so HIV-style alignments can color mismatches against one strain (e.g. SF162p3) while numbering the x-axis from another (e.g. HxB2). New CLI flags: --variant-ref, --numbering-ref, --show-row-labels, --tick-every, --per-panel-axes, --max-rows, --show. - fasta_panel: variant_ref/numbering_ref selection, max_rows cap, tick_every - renderer: second x-axis for dual-ref, per-panel axes, row labels - cli: kitten icat --show, BAM warn-on-fasta-only flags, max_rows - tests: dual-ref, per-panel axes, CLI flag coverage; regenerated outputs - README: dual-reference section, per-row labels, tick frequency examples
Click <8.2 requires mix_stderr=False to access result.stderr; Click 8.2+ removed that parameter and stderr capture differs. Try mix_stderr=False first, fall back to default runner, and tolerate either stderr or combined output for the kitten missing-soft-failure assertion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--variant-ref,--numbering-ref,--show-row-labels,--tick-every,--per-panel-axes,--max-rows,--show.Test plan
pytest tests/test_dual_ref.py tests/test_heterologous.py tests/test_per_panel_axes.py tests/test_cli.py tests/test_fasta.pytests/output/*.png(dual_ref, per_panel_axes, row_labels)tview <fasta> --variant-ref SF162p3 --numbering-ref HxB2 --show-row-labels --tick-every 25--showinvokeskitten icatonly when terminal supports it (only works for ghostty)