Fast contact matrix visualization for the web.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Build Status Live Docs DOI


HiGlass is a web-based viewer for genome interaction maps featuring synchronized navigation of multiple views as well as continuous zooming and panning for navigation across genomic loci and resolutions. It supports visual comparison of Hi-C and other genomic data from different experimental conditions and can be used to efficiently identify salient outcomes of experimental perturbations, generate new hypotheses, and share the results with the community.

A live instance can be found at A Docker container is available for running an instance locally, although we recommend using the higlass-manage package to start, stop and configure local instances.

For documentation about how to use and install HiGlass, please visit



To run higlass from its source code simply run the following:

npm install
npm run start


The tests for the React components and API functions are located in the test directory.

npm run test-watch


  • If the installation fails due to sharp > node-gyp try installing the node packages using python2:

    npm i --python=/usr/bin/python2 && rm -rf node_modules/node-sass && npm i


HiGlass provides an API for controlling the component from within a Javascript script. Complete documentation is availabe at Example:

<link rel="stylesheet" href="//" type="text/css">
<link rel="stylesheet" href="" type="text/css">

<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>

    style="position: absolute; left: 1rem; top: 1rem; bottom: 1rem; right: 1rem">

var testViewConfig =
  "editable": true,
  "trackSourceServers": [
  "exportViewUrl": "",
  "views": [
      "uid": "view1",
      "tracks": {
        "center": [
                "name": "Rao et al. (2014) GM12878 MboI (allreps) 1kb",
                "server": "",
                "tilesetUid": "CQMd6V_cRw6iCI_-Unl3PQ",
                "type": "heatmap"
      "genomePositionSearchBox": {
        "autocompleteServer": "",
        "chromInfoServer": "",
        "visible": true,
        "chromInfoId": "hg19",
        "autocompleteId": "OHJakQICQD6gTD7skx4EWA"


const api = hglib.createHgComponent(
    { bounded: true }



HiGlass is provided under the MIT License.