higlass-time-interval-track

0.2.0-rc.2 • Public • Published

Time Interval Track for HiGlass

Display time intervals in the format HH:MM:ss in HiGlass.

HiGlass Build Status

HiGlass showing times

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

Installation

npm install higlass-time-interval-track

Usage

  1. Make sure you load this track prior to hglib.js. For example:
<script src="higlass-time-interval-track.js"></script>
<script src="hglib.js"></script>
<script>
  ...
</script>

2 Make sure that your server is hosting a htime file. This file should contain start, end and length which indicate the start time, end time, and the length of the data points that span that time interval.


{
  "start": 1527700333497.325, 
  "end": 1527700926756.7783, 
  "len": 59340
}

This will place the first time interval at data position 0 and the last at data position 59340. Each data point is thus assumed to last 10 milliseconds.

  1. Configure the track in your view config and be happy! Cheers 🎉
{
  ...
  {
    server: 'http://localhost:8001/api/v1',
    tilesetUid: 'time-interval.json',
    uid: 'blah',
    type: 'time-interval-track',
    options: {

    },
  },
  ...
}

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

Development

Installation

$ git clone https://github.com/pkerpedjiev/higlass-time-interval-track
$ npm install

Commands

Developmental server: npm start Production build: npm run build

Readme

Keywords

Package Sidebar

Install

npm i higlass-time-interval-track

Weekly Downloads

0

Version

0.2.0-rc.2

License

MIT

Unpacked Size

48.6 kB

Total Files

9

Last publish

Collaborators

  • pkerpedjiev