# Module: ext/lz-intervals-enrichment

Interval annotation track that groups annotations by enrichment value (a fixed y-axis) rather than by merged/split tracks. This is not part of the core LocusZoom library, but can be included as a standalone file.

### Features provided

- module:LocusZoom_DataLayers~intervals_enrichment
- module:LocusZoom_Layouts~intervals_association_enrichment
- module:LocusZoom_Layouts~intervals_enrichment_panel
- module:LocusZoom_Layouts~intervals_enrichment_data_layer
- module:LocusZoom_Layouts~intervals_enrichment_tooltip

### 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-enrichment.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 layouts made available by this extension. (see demos and documentation for guidance)

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