Add visual domain mapping for single-feature Domains tab#1222
Merged
olsonanl merged 1 commit intoBV-BRC:alphafrom Mar 6, 2026
Merged
Add visual domain mapping for single-feature Domains tab#1222olsonanl merged 1 commit intoBV-BRC:alphafrom
olsonanl merged 1 commit intoBV-BRC:alphafrom
Conversation
Implement an interactive D3-based visualization that displays protein domains as colored rectangles positioned along a protein sequence bar. The visualization appears above the grid when viewing domains for a single feature/protein. Features: - Horizontal protein backbone with domain rectangles positioned by start/end coordinates - Track-based layout algorithm to handle overlapping domains - Color-coded domains by source database (CDD, InterPro, Pfam, etc.) using colorblind-accessible palette - Tooltips showing domain details (source, position, e-value) - Click to open external database links - Bidirectional selection sync between visualization and grid - Collapsible panel with scrollable content - Only shown for single-feature view, not multi-protein domain lists New files: - D3DomainViewer.js: Core D3 visualization widget - DomainColorScheme.js: Color palette and external URL mappings - DomainVisualizationPanel.js: Collapsible container panel - domain-viewer.css: Styling for visualization components Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 tasks
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
Fixes https://github.com/BV-BRC/issues/issues/1502
Features
New Files
D3DomainViewer.js- Core D3 visualization widgetDomainColorScheme.js- Color palette and external URL mappingsDomainVisualizationPanel.js- Collapsible container paneldomain-viewer.css- Styling for visualization componentsTest plan
/view/Feature/PATRIC.xxx#view_tab=proteinFeatures)🤖 Generated with Claude Code