Skip to content

Support embedded interact (bedpe) features & colorBy type for Interac…#2011

Merged
jrobinso merged 2 commits intomasterfrom
sv_cbio
Jul 17, 2025
Merged

Support embedded interact (bedpe) features & colorBy type for Interac…#2011
jrobinso merged 2 commits intomasterfrom
sv_cbio

Conversation

@jrobinso
Copy link
Contributor

…tionTrack

@jrobinso jrobinso requested a review from Copilot July 17, 2025 04:42
Copy link
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

This PR adds support for embedded BEDPE-style interaction features and a colorBy option with customizable color tables in the InteractionTrack (and aligns similar behavior in FeatureTrack).

  • Introduce ColorTable/PaletteColorTable imports and default palette logic
  • Add colorBy config, getColor helper, and fixFeatures for embedded feature extents
  • Provide two new dev examples (embedded.html, bedpe-color.html) to illustrate colorBy and custom coloring

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
js/feature/interactionTrack.js Add colorBy support, import color tables, implement getColor and fixFeatures helpers
js/feature/featureTrack.js Align colorBy handling and object formatting in track UI menu
dev/interact/embedded.html New example showing embedded interact features colored by type
dev/interact/bedpe-color.html Example demonstrating custom color field on BEDPE records
Comments suppressed due to low confidence (1)

js/feature/interactionTrack.js:313

  • The new getColor and fixFeatures logic introduces important behavior for colorBy and embedded features but lacks unit tests. Consider adding tests covering these code paths.
    getColor(feature) {

@jrobinso jrobinso merged commit 3e43333 into master Jul 17, 2025
2 checks passed
@jrobinso jrobinso deleted the sv_cbio branch July 17, 2025 04:47
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.

2 participants