higlass-image
v0.2.0
Published
A plugin track for viewing image data in HiGlass
Downloads
3
Maintainers
Readme
HiGlass Image
A collection of tracks for viewing image data in HiGlass
HiGlass in dark mode showing a beautiful gigapixel image of Rio de Janeiro by The Rio de Janeiro - Hong Kong Connection
Live Demo: http://higlass-image.lekschas.de
Note: This is the source code for image tracks only! You might want to check out the following repositories as well:
- Image tiles to SQLite converter: https://github.com/flekschas/image-tiles-to-sqlite
- 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-image
Usage
Note: We assume that you have create and ingested a SQLite-based image tileset database. If you're asking yourself "what the fu*! are they talking about" please check out our image tiles to SQLite converter.
- Make sure you load this track prior to
hglib.js
. For example:
<script src="higlass-image.js"></script>
<script src="hglib.js"></script>
<script>
...
</script>
- Configure the track in the view config.
{
...
center: [
{
uid: 'c1',
type: 'combined',
options: {},
contents: [
{
uid: 'my-fancy-tiled-image',
type: 'image-tiles',
server: 'http://localhost:8001/api/v1/',
tilesetUid: 'my-fancy-tiled-image',
options: {
name: 'My fancy tiled image'
}
},
],
},
],
...
}
Take a look at src/index.html
for an example.
- You did it! We're so proud of you 🎉. You are truly the best!
Development
Installation
$ git clone https://github.com/flekschas/higlass-image && higlass-image
$ npm install
Commands
Developmental server: npm start
Production build: npm run build