# Module: ext/lz-intervals-track

Interval annotation track (for chromatin state, etc). Useful for BED file data with non-overlapping intervals. This is not part of the core LocusZoom library, but can be included as a standalone file.

### Features provided

- module:LocusZoom_Adapters~IntervalLZ
- module:LocusZoom_Widgets~toggle_split_tracks
- module:LocusZoom_ScaleFunctions~to_rgb
- module:LocusZoom_DataLayers~intervals
- module:LocusZoom_Layouts~standard_intervals
- module:LocusZoom_Layouts~bed_intervals_layer
- module:LocusZoom_Layouts~intervals_layer
- module:LocusZoom_Layouts~intervals
- module:LocusZoom_Layouts~bed_intervals
- module:LocusZoom_Layouts~interval_association

### Loading and usage

The page must incorporate and load all libraries before this file can be used, including:

- LocusZoom

To use in an environment without special JS build tooling, simply load the extension file as JS from a CDN (after any dependencies):

    <script src="https://cdn.jsdelivr.net/npm/locuszoom@INSERT_VERSION_HERE/dist/ext/lz-intervals-track.min.js" type="application/javascript"></script>

To use with ES6 modules, the plugin must be loaded and registered explicitly before use:

    import LocusZoom from 'locuszoom';
    import IntervalsTrack from 'locuszoom/esm/ext/lz-intervals-track';
    LocusZoom.use(IntervalsTrack);

Then use the features made available by this extension. (see demos and documentation for guidance)

Source:
  - ext/lz-intervals-track.js, line 1