higlass-unix-time-track
v0.1.6
Published
A HiGlass track displaying unix epoch times converted to human readable dates.
Downloads
2
Readme
Unix Time Track for HiGlass
Display human readable unix epoch time.
Note: This is the source code for the time interval track only! You might want to check out the following repositories as well:
- HiGlass viewer: https://github.com/hms-dbmi/higlass
- HiGlass server: https://github.com/hms-dbmi/higlass-server
- HiGlass docker: https://github.com/hms-dbmi/higlass-docker
Installation
npm install higlass-unix-time-track
Usage
- Make sure you load this track prior to
hglib.js
. For example:
<script src="higlass-unix-time-track.js"></script>
<script src="hglib.js"></script>
<script>
...
</script>
- Now, configure the track in your view config and be happy! Cheers 🎉
{
...
{
server: 'http://localhost:8001/api/v1',
tilesetUid: 'time-interval.json',
uid: 'blah',
type: 'unix-time-track',
options: {
},
},
...
}
Take a look at src/index.html
for an example.
Development
Installation
$ git clone https://github.com/manzt/higlass-unix-time-track && cd unix-time-track
$ npm install
Commands
Developmental server: npm start
Production build: npm run build