Module: ext/lz-credible-sets

Custom code used to power credible sets demonstration example. This is not part of the core LocusZoom library, but can be included as a standalone file.

Features provided

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-credible-sets.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 credibleSets from 'locuszoom/esm/ext/lz-credible-sets';
LocusZoom.use(credibleSets);
Source: