Explore datasets containing millions of points with labels in HiGlass
Note: This is the source code for the labelled points track only! You might want to check out the following repositories as well:
- HiGlass labelled points track (this repository): https://github.com/higlass/higlass-labelled-points-tracks
- HiGlass viewer: https://github.com/higlass/higlass
- HiGlass server: https://github.com/higlass/higlass-server
- HiGlass docker: https://github.com/higlass/higlass-docker
npm install higlass-labelled-points-track
To try this track out, head over to https://github.com/pkerpedjiev/million-primes and start a server using the provided notebook.
- Make sure you load this track prior to
hglib.js
. For example:
<script src="higlass-labelled-points-track.js"></script>
<script src="hglib.js"></script>
<script>
...
</script>
- Now, configure the track in your view config and be happy!
{
...
{
server: 'http://localhost:8001/api/v1',
tilesetUid: 'blah',
type: 'labelled-points-track',
options: {
labelField: 'label',
xPosField: 'x',
yPosField: 'y'
},
},
...
}
Take a look at src/index.html
for an example.
$ git clone https://github.com/pkerpedjiev/labelled-points-track && higlass-labelled-points-track
$ npm install
Developmental server: npm start
Production build: npm run build