You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe it:
Some datasets such as geographic entities, features on the genome, and regions-of-interest in an image (identified algorithmically) inherently contain information about their extent in a way that glue should be able to visualize and reason about. For anything except a tiny dataset it is not feasible or desirable to translate all these extents into glue subsets.
Describe the solution you'd like:
Add an ExtendedComponent type to glue that would allow for a component to specify a shape (or set of shapes) for each element of a dataset. ExtendedComponents would describe an extant on one or more other Components in the dataset (parent_components— which may be CoordinateComponents or regular Components), and should contain references to those parent_components. Data Loaders would be responsible for parsing input data files into the appropriate components and individual Viewers would be updated to support plotting ExtendedComponents. ExtendedComponents should perhaps be hidden from the user and only used by Viewers when plotting the parent_components and transforming ROIs to SubsetStates.
Describe alternatives you've considered:
The following packages provide two partial and alternative approaches to this problem:
Geographic regions (e.g. https://github.com/jfoster17/glue-map) -- uses a custom Data class which includes geometry and centroid attributes to represent the extent of geographic regions.
How to handle ROI selections that partially intersect with an ExtendedComponent
How to deal with the conversion that a user will probably want to make from a subset over data points (i.e. states) to a subset over the extent of that data points (i.e. the geographic region contained within a set of states)
See the attached overly long PDF for my full thinking through of what this might look like.
Is your feature request related to a problem? Please describe it:
Some datasets such as geographic entities, features on the genome, and regions-of-interest in an image (identified algorithmically) inherently contain information about their extent in a way that glue should be able to visualize and reason about. For anything except a tiny dataset it is not feasible or desirable to translate all these extents into glue subsets.
Describe the solution you'd like:
Add an
ExtendedComponent
type to glue that would allow for a component to specify a shape (or set of shapes) for each element of a dataset.ExtendedComponents
would describe an extant on one or more otherComponents
in the dataset (parent_components
— which may beCoordinateComponents
or regularComponents
), and should contain references to those parent_components. Data Loaders would be responsible for parsing input data files into the appropriate components and individual Viewers would be updated to support plottingExtendedComponents
.ExtendedComponents
should perhaps be hidden from the user and only used by Viewers when plotting theparent_components
and transforming ROIs toSubsetStates
.Describe alternatives you've considered:
The following packages provide two partial and alternative approaches to this problem:
Data
class which includes geometry and centroid attributes to represent the extent of geographic regions.Additional context:
The biggest decisions to be made are:
ExtendedComponent
See the attached overly long PDF for my full thinking through of what this might look like.
ExtendedComponent.pdf
Related Issues
The text was updated successfully, but these errors were encountered: