FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat!: Update highlight mechanism with multiple highlighting region and VCF and BED options by fxwiegand · Pull Request #372 · alignoth/alignoth · GitHub

feat!: Update highlight mechanism with multiple highlighting region and VCF and BED options - #372

Merged
fxwiegand merged 5 commits into
mainfrom
extend-highlight
Oct 16, 2025
Merged

fxwiegand merged 5 commits into
mainfrom
extend-highlight

Conversation

Copy link
Copy Markdown
Collaborator

This pull request adds support for highlighting variant and region positions using VCF and BED files in the visualization and CLI workflow. It refactors the highlight interval logic to allow multiple named intervals, introduces new modules for handling VCF/BED highlights, and updates the wizard and main CLI interfaces to accept these files. Additionally, it improves the interval data structure and the plot configuration for better clarity.

Highlighting and Data Input Enhancements

  • Added support for highlighting variant positions from VCF files and regions from BED files by introducing new CLI options (--vcf and --bed) and extending the wizard interface to prompt for these files. [1] [2] [3]
  • Refactored the highlight interval logic to accept multiple intervals (Vec<Interval>) with names, and updated the interval parsing to support named intervals in the format name:start-end. [1] [2]

New Highlight Module

  • Added a new highlight module with Highlight trait and implementations for VCF and BED files, extracting intervals relevant to the selected region. Includes unit tests for VCF/BED interval extraction.

CLI and Data Flow Updates

  • Updated the main CLI and wizard logic to aggregate highlight intervals from direct input, VCF, and BED files, and apply preprocessing to all intervals for correct plotting. [1] [2] [3]

Plot and Utility Improvements

  • Changed the plot configuration to color highlight rectangles by their name (site) and slightly increased their opacity for better visibility.
  • Added a utility function ellipsis to truncate long allele names for display, with corresponding tests. [1] [2]

These changes collectively make the visualization tool more flexible and informative by allowing users to highlight specific variants and regions from external files, improving both the user experience and the clarity of the generated plots.

fxwiegand changed the title !feat: Update highlight mechanism with multiple highlighting region and VCF and BED options feat!: Update highlight mechanism with multiple highlighting region and VCF and BED options Oct 15, 2025

Copy link
Copy Markdown

⚠️ Please install the to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 46.53465% with 54 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.08%. Comparing base (5e0b8ca) to head (623c7d5).

Files with missing lines Patch % Lines
src/wizard.rs 0.00% 37 Missing ⚠️
src/main.rs 0.00% 8 Missing ⚠️
src/cli.rs 61.11% 7 Missing ⚠️
src/highlight.rs 94.11% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #372      +/-   ##
==========================================
- Coverage   50.37%   50.08%   -0.30%     
==========================================
  Files           5        6       +1     
  Lines         528      617      +89     
==========================================
+ Hits          266      309      +43     
- Misses        262      308      +46     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fxwiegand linked an issue Oct 16, 2025 that may be closed by this pull request
fxwiegand merged commit 9adbf16 into main Oct 16, 2025
6 of 7 checks passed
fxwiegand deleted the extend-highlight branch October 16, 2025 10:14
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display other annotations with alignments

2 participants


Back | FazBrowse Home | New Git URL