Skip to content

HiGlass track for displaying arcs between disconnected regions

License

Notifications You must be signed in to change notification settings

higlass/higlass-arcs

Repository files navigation

Arcs Track for HiGlass

Display connections between non-adjacent regions.

HiGlass Build Status

Screenshot of the arcs track

Note: This is the source code for the arcs track only! You might want to check out the following repositories as well:

Installation

npm install higlass-arcs

Usage

The live script can be found at:

  1. Make sure you load this track prior to hglib.js. For example:
<script src="higlass-arcs.js"></script>
<script src="hglib.js"></script>
<script>
  ...
</script>
  1. Now, configure the track in your view config and be happy! Cheers 🎉
{
  ...
  {
    server: 'http://localhost:8001/api/v1',
    tilesetUid: 'my-aggregated-bedfile.beddb',
    uid: 'some-uid',
    type: '1d-arcs',
    options: {
      labelColor: 'red',
      labelPosition: 'hidden',
      trackBorderWidth: 0,
      trackBorderColor: 'black',
      name: 'Arcs for me and you!',
    },
  },
  ...
}

Take a look at src/index.html for an example.

Development

Installation

$ git clone https://github.com/higlass/higlass-arcs && higlass-arcs
$ npm install

Commands

Developmental server: npm start Production build: npm run build