Display connections between non-adjacent regions.
Note: This is the source code for the arcs track only! You might want to check out the following repositories as well:
- HiGlass viewer: https://github.com/hms-dbmi/higlass
- HiGlass server: https://github.com/hms-dbmi/higlass-server
- HiGlass docker: https://github.com/hms-dbmi/higlass-docker
npm install higlass-arcs
The live script can be found at:
- Make sure you load this track prior to
hglib.js
. For example:
<script src="higlass-arcs.js"></script>
<script src="hglib.js"></script>
<script>
...
</script>
- Now, configure the track in your view config and be happy! Cheers 🎉
{
...
{
server: 'http://localhost:8001/api/v1',
tilesetUid: 'my-aggregated-bedfile.beddb',
uid: 'some-uid',
type: '1d-arcs',
options: {
labelColor: 'red',
labelPosition: 'hidden',
trackBorderWidth: 0,
trackBorderColor: 'black',
name: 'Arcs for me and you!',
},
},
...
}
Take a look at src/index.html
for an example.
$ git clone https://github.com/higlass/higlass-arcs && higlass-arcs
$ npm install
Developmental server: npm start
Production build: npm run build