{"id":21662824,"url":"https://github.com/higlass/higlass-datetime-track","last_synced_at":"2026-05-20T05:05:02.286Z","repository":{"id":71427351,"uuid":"162376695","full_name":"higlass/higlass-datetime-track","owner":"higlass","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-19T03:16:46.000Z","size":313,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T05:48:53.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-19T03:16:22.000Z","updated_at":"2018-12-19T03:16:51.000Z","dependencies_parsed_at":"2023-06-04T04:30:19.518Z","dependency_job_id":null,"html_url":"https://github.com/higlass/higlass-datetime-track","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/higlass/higlass-datetime-track","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-datetime-track","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-datetime-track/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-datetime-track/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-datetime-track/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/higlass","download_url":"https://codeload.github.com/higlass/higlass-datetime-track/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/higlass%2Fhiglass-datetime-track/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267150480,"owners_count":24043473,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:15.726Z","updated_at":"2026-05-20T05:05:02.258Z","avatar_url":"https://github.com/higlass.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Time Interval Track for HiGlass\n\n\u003e Display time intervals in the format HH:MM:ss in HiGlass.\n\n[![HiGlass](https://img.shields.io/badge/higlass-👍-red.svg?colorB=0f5d92)](http://higlass.io)\n[![Build Status](https://img.shields.io/travis/pkerpedjiev/higlass-time-interval-track/master.svg?colorB=0f5d92)](https://travis-ci.org/pkerpedjiev/higlass-time-interval-track)\n\n![HiGlass showing times](/screenshot.png?raw=true \"Times since the beginning of an event visible as an axis\")\n\n**Note**: This is the source code for the time interval track only! You might want to check out the following repositories as well:\n\n- HiGlass viewer: https://github.com/hms-dbmi/higlass\n- HiGlass server: https://github.com/hms-dbmi/higlass-server\n- HiGlass docker: https://github.com/hms-dbmi/higlass-docker\n\n## Installation\n\n```\nnpm install higlass-time-interval-track\n```\n\n## Usage\n\n1. Make sure you load this track prior to `hglib.js`. For example:\n\n```\n\u003cscript src=\"higlass-time-interval-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 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.\n\n```\n\n{\n  \"start\": 1527700333497.325, \n  \"end\": 1527700926756.7783, \n  \"len\": 59340\n}\n```\nThis will place the first time interval at data position 0 and the last at data position 59340. Each data point \nis thus assumed to last 10 milliseconds.\n\n3. Configure the track in your view config and be happy! Cheers 🎉\n\n```\n{\n  ...\n  {\n    server: 'http://localhost:8001/api/v1',\n    tilesetUid: 'time-interval.json',\n    uid: 'blah',\n    type: 'time-interval-track',\n    options: {\n\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/pkerpedjiev/higlass-time-interval-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-datetime-track","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiglass%2Fhiglass-datetime-track","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiglass%2Fhiglass-datetime-track/lists"}