Skip to content

Instantly share code, notes, and snippets.

@flekschas
Last active June 17, 2018 22:50
Show Gist options
  • Save flekschas/7a2bb5d19cb3e0a8fe7f952e64c44080 to your computer and use it in GitHub Desktop.
Save flekschas/7a2bb5d19cb3e0a8fe7f952e64c44080 to your computer and use it in GitHub Desktop.
This is a simplified template for a view configuration on Rao et al. (2014) GM12878 served from http://higlass.io. Please refer to https://github.com/flekschas/hipiler/wiki/Data#config-file how to configure the snippets (`fgm` part). In essence you need to replace the `fgm.fragments` with a double array of BEDPE like locations. This example cont…
{
"fgm": {
"fragmentsServer": "//higlass.io/api/v1/",
"fragmentsPrecision": 2,
"fragmentsDims": 60,
"fragmentsPadding": 50,
"fragmentsBaseRes": 1000,
"fragmentsPercentile": 99,
"fragmentsIgnoreDiags": 1,
"fragments": [
["chrom1", "start1", "end1", "strand1", "chrom2", "start2", "end2", "strand2", "dataset", "zoomOutLevel", "corner-score", "U-var", "L-var", "U-sign", "L-sign"],
["4", 69285000, 70075000, "+", "4", 69285000, 70075000, "+", "CQMd6V_cRw6iCI_-Unl3PQ", 0, 0.098279, 0.20712, 0.43713, 0.4001, 0.40554]
]
},
"hgl": {
"editable": false,
"trackSourceServers": [
"/api/v1"
],
"exportViewUrl": "//higlass.io/api/v1/viewconfs/",
"chromInfoPath": "//higlass.io/api/v1/chrom-sizes/?id=N12wVGG9SPiTkk03yUayUw&type=json&cum=1",
"views": [
{
"uid": "a",
"zoomFixed": true,
"initialXDomain": [
690472424,
881626700
],
"initialYDomain": [
690472424,
881626700
],
"autocompleteSource": "//higlass.io/api/v1/suggest/?d=OHJakQICQD6gTD7skx4EWA&",
"genomePositionSearchBoxVisible": true,
"chromInfoPath": "//higlass.io/api/v1/chrom-sizes/?id=N12wVGG9SPiTkk03yUayUw",
"tracks": {
"top": [
{
"uid": "b",
"type": "horizontal-gene-annotations",
"height": 60,
"tilesetUid": "OHJakQICQD6gTD7skx4EWA",
"server": "//higlass.io/api/v1",
"name": "Gene Annotations",
"options": {
"name": "Gene Annotations (hg19)",
"minusStrandColor": "#999",
"plusStrandColor": "#999"
}
},
{
"uid": "c",
"chromInfoPath": "//higlass.io/api/v1/chrom-sizes/?id=N12wVGG9SPiTkk03yUayUw",
"type": "horizontal-chromosome-labels",
"name": "Chromosome Labels (hg19)",
"height": 30
}
],
"left": [
{
"uid": "d",
"chromInfoPath": "//higlass.io/api/v1/chrom-sizes/?id=N12wVGG9SPiTkk03yUayUw",
"type": "vertical-chromosome-labels",
"name": "Chromosome Labels (hg19)",
"width": 30
}
],
"center": [
{
"uid": "e",
"type": "combined",
"height": 200,
"contents": [
{
"uid": "f",
"server": "//higlass.io/api/v1",
"tilesetUid": "CQMd6V_cRw6iCI_-Unl3PQ",
"type": "heatmap",
"options": {
"colorRange": [
"#FFFFFF",
"#ffed1a",
"#ff5500",
"#540000"
],
"backgroundColor": "white",
"maxZoom": null,
"name": "",
"orgName": "Rao et al. (2014) GM12878 MboI (allreps) 1kb"
}
}
],
"position": "center"
}
],
"right": [],
"bottom": []
},
"layout": {
"w": 12,
"h": 12,
"x": 0,
"y": 0,
"i": "a",
"moved": false,
"static": false
}
}
],
"zoomLocks": {
"locksByViewUid": {},
"zoomLocksDict": {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment