Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlaying a single track over multiple tracks #884

Open
ThHarbig opened this issue Apr 28, 2023 · 2 comments
Open

Overlaying a single track over multiple tracks #884

ThHarbig opened this issue Apr 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ThHarbig
Copy link
Collaborator

I think it would be useful to be able to add a single track as an overlay for multiple tracks.
For example, for IslandViewer, where a point track is overlaid over multiple stacked tracks.

Island Viewer with overlaid point track

It is possible to implement this at the moment using multiple overlaid tracks with increasing y parameters.

Another use case for this would be overlaying a brush over multiple tracks. In the Gremlin example, this is done for each track individually, but I think it would be more intuitive to add the brush just once in a single overlay track.

@ThHarbig ThHarbig added the enhancement New feature or request label Apr 28, 2023
@sehilyi
Copy link
Member

sehilyi commented May 2, 2023

Grammar-wise, we will need to allow StackedTracks in OverlaidTracks:

From

export interface OverlaidTracks extends CommonViewDef, Partial<SingleTrack> {
    alignment: 'overlay';
    tracks: PartialTrack[];
}

To

export interface OverlaidTracks extends CommonViewDef, Partial<SingleTrack> {
    alignment: 'overlay';
    tracks: (PartialTrack | StackedTracks)[];
}

@sehilyi
Copy link
Member

sehilyi commented May 8, 2023

This will be beneficial when a user wants to put a brush that spans across tracks in a view. At the moment, users have to put brushes on individual tracks for this.

A technical difficulty would be that (AFAIK) HiGlass does not allow overlaying a view on top of multiple views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants