gosling.js icon indicating copy to clipboard operation
gosling.js copied to clipboard

Allow showing different genomic intervals in parallelized and serialized circular views

Open sehilyi opened this issue 3 years ago • 2 comments

This is currently impossible since those tracks are contained in a single "higlass view" which can have exactly one xDomain.

To allow this, we should either (1) support multiple xDomains in the higlass view or (2) allow overlaying multiple "higlass views" on top of each other (this is not supported by react-grid-layout which is the main library being used in HiGlass to layout views).

For the second option above, i.e., overlaying multiple views on top of each other, we could either overlay multiple RGL grids (Related issue: https://github.com/react-grid-layout/react-grid-layout/discussions/1421) or allow higlass to overlay multiple views in a single RGL grid.

sehilyi avatar Feb 13 '21 21:02 sehilyi

To make the following cytoband example useful, this issue should be addressed (currently, we can only show the same chromosome due to the technical issue, but we want to show different chromosomes, such as chr1, chr2, chr3, ..., from the outside to the insde):

Screen Shot 2021-02-15 at 8 46 56 PM

sehilyi avatar Feb 16 '21 01:02 sehilyi

It looks a recently added allowOverlap option will be the solution for this (https://github.com/react-grid-layout/react-grid-layout/pull/1470), which is not yet released.

sehilyi avatar Jun 22 '21 23:06 sehilyi