https://github.com/higlass/higlass-linear-labels-track
https://github.com/higlass/higlass-linear-labels-track
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/higlass/higlass-linear-labels-track
- Owner: higlass
- License: mit
- Created: 2018-09-05T02:19:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T01:37:30.000Z (over 6 years ago)
- Last Synced: 2026-02-14T11:33:42.456Z (4 months ago)
- Language: JavaScript
- Size: 385 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Linear Labels Track
> Tile-based labels along a 1D axis (x- or y-)
[](http://higlass.io)
[](https://travis-ci.org/higlass/higlass-linear-labels-track)

**Note**: This is the source code for the linear labels track only! You might want to check out the following repositories as well:
- HiGlass linear labels track (this repository): https://github.com/higlass/higlass-linear-labels-tracks
- HiGlass viewer: https://github.com/higlass/higlass
- HiGlass server: https://github.com/higlass/higlass-server
- HiGlass docker: https://github.com/higlass/higlass-docker
## Installation
```
npm install higlass-linear-labels-track
```
## Usage
### Server
First, make sure that you have a server capable of serving tiled labels.
[This notebook](https://github.com/higlass/higlass-python/blob/pkerpedjiev/merge-branches/notebooks/Label%20server%20example.ipynb) provides a functioning demo
server that can be run locally. In the last cell, a viewconf is provided which
can be used to instantiate HiGlass (see step 2 below).
### Client
1. Make sure you load this track prior to `hglib.js`. For example:
```
...
```
2. Now, configure the track in your view config and be happy!
```
{
...
{
server: 'http://localhost:8001/api/v1',
tilesetUid: 'blah',
type: 'linear-labels-track',
options: {
labelField: 'label',
xPosField: 'x',
},
},
...
}
```
Take a look at [`src/index.html`](src/index.html) for an example.
## Development
### Installation
```bash
$ git clone https://github.com/higlass/linear-labels-track && higlass-linear-labels-track
$ npm install
```
### Commands
**Developmental server**: `npm start`
**Production build**: `npm run build`