gosling-lang / gosling.js

Grammar of Scalable Linked Interactive Nucleotide Graphics

Home Page:https://gosling.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove `DataTrack` or fully support it

sehilyi opened this issue · comments

For the context, where DataTrack is defined:

export type Track = SingleTrack | OverlaidTrack | DataTrack | TemplateTrack | DummyTrack;

/**
* Partial specification of `BasicSingleTrack` to use default visual encoding predefined by data type.
*/
export interface DataTrack extends CommonTrackDef {
data: DataDeep;
}

The motivation of introducing Data Track was to enable users to quickly visualize data without thinking about visual encoding. Data Track is a partial type of a regular gosling track (BasicSingleTrack), which means users can specify the data type and its URL, and Gosling chose visual encoding based on the data type (e.g., bar charts for bigwig files).

Given the higher priority of supporting other important features than supporting/maintaining this, we made this feature deprecated at some point. However, we did not entirely remove this from the grammar.

We need to decide whether we want to remove this entirely from the grammar or support this better.