{"id":21662813,"url":"https://github.com/higlass/higlass-bedlike-triangles-track","last_synced_at":"2026-05-09T13:12:38.940Z","repository":{"id":57264204,"uuid":"185500152","full_name":"higlass/higlass-bedlike-triangles-track","owner":"higlass","description":null,"archived":false,"fork":false,"pushed_at":"2019-07-18T21:43:58.000Z","size":365,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-27T06:05:50.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/higlass.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-08T00:52:20.000Z","updated_at":"2019-07-18T21:44:00.000Z","dependencies_parsed_at":"2022-08-25T02:20:30.844Z","dependency_job_id":null,"html_url":"https://github.com/higlass/higlass-bedlike-triangles-track","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-bedlike-triangles-track","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-bedlike-triangles-track/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-bedlike-triangles-track/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-bedlike-triangles-track/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/higlass","download_url":"https://codeload.github.com/higlass/higlass-bedlike-triangles-track/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560373,"owners_count":20472219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T10:18:12.918Z","updated_at":"2026-05-09T13:12:33.901Z","avatar_url":"https://github.com/higlass.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear Labels Track\n\n\u003e Tile-based labels along a 1D axis (x- or y-)\n\n[![HiGlass](https://img.shields.io/badge/higlass-👍-red.svg?colorB=0f5d92)](http://higlass.io)\n[![Build Status](https://img.shields.io/travis/higlass/higlass-linear-labels-track/master.svg?colorB=0f5d92)](https://travis-ci.org/higlass/higlass-linear-labels-track)\n\n\u003cimg src=\"/teaser.png?raw=true\" width=\"600\" /\u003e\n\n**Note**: This is the source code for the linear labels track only! You might want to check out the following repositories as well:\n\n- HiGlass linear labels track (this repository): https://github.com/higlass/higlass-linear-labels-tracks\n- HiGlass viewer: https://github.com/higlass/higlass\n- HiGlass server: https://github.com/higlass/higlass-server\n- HiGlass docker: https://github.com/higlass/higlass-docker\n\n## Installation\n\n```\nnpm install higlass-linear-labels-track\n```\n\n## Usage\n\n### Server\n\nFirst, make sure that you have a server capable of serving tiled labels.\n[This notebook](https://github.com/higlass/higlass-python/blob/pkerpedjiev/merge-branches/notebooks/Label%20server%20example.ipynb) provides a functioning demo\nserver that can be run locally. In the last cell, a viewconf is provided which\ncan be used to instantiate HiGlass (see step 2 below).\n\n### Client\n\n1. Make sure you load this track prior to `hglib.js`. For example:\n\n```\n\u003cscript src=\"higlass-linear-labels-track.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"hglib.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  ...\n\u003c/script\u003e\n```\n\n2. Now, configure the track in your view config and be happy! \n\n```\n{\n  ...\n  {\n    server: 'http://localhost:8001/api/v1',\n    tilesetUid: 'blah',\n    type: 'linear-labels-track',\n    options: {\n        labelField: 'label',\n        xPosField: 'x',\n    },\n  },\n  ...\n}\n```\n\nTake a look at [`src/index.html`](src/index.html) for an example.\n\n## Development\n\n### Installation\n\n```bash\n$ git clone https://github.com/higlass/linear-labels-track \u0026\u0026 higlass-linear-labels-track\n$ npm install\n```\n\n### Commands\n\n**Developmental server**: `npm start`\n**Production build**: `npm run build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiglass%2Fhiglass-bedlike-triangles-track","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiglass%2Fhiglass-bedlike-triangles-track","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiglass%2Fhiglass-bedlike-triangles-track/lists"}