Last active
April 6, 2017 06:17
-
-
Save nvictus/c43b42891573fb5141fbc45c04a244d3 to your computer and use it in GitHub Desktop.
higlass-in-jupyter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"metadata": { | |
"collapsed": false, | |
"ExecuteTime": { | |
"start_time": "2017-04-06T02:14:29.025201", | |
"end_time": "2017-04-06T02:14:29.045331" | |
}, | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "%%javascript\n\nvar config = {\n \"editable\": true,\n \"zoomFixed\": false,\n \"trackSourceServers\": [\n \"http://higlass.io/api/v1\"\n ],\n \"exportViewUrl\": \"http://higlass.io/api/v1/viewconfs/\",\n \"views\": [\n {\n \"uid\": \"aa\",\n \"initialXDomain\": [\n 509161199.6251172,\n 2590838800.374883\n ],\n \"autocompleteSource\": \"http://higlass.io/api/v1/suggest/?d=OHJakQICQD6gTD7skx4EWA&\",\n \"genomePositionSearchBoxVisible\": true,\n \"chromInfoPath\": \"//s3.amazonaws.com/pkerp/data/hg19/chromSizes.tsv\",\n \"tracks\": {\n \"top\": [\n {\n \"type\": \"horizontal-gene-annotations\",\n \"height\": 60,\n \"tilesetUid\": \"OHJakQICQD6gTD7skx4EWA\",\n \"server\": \"http://higlass.io/api/v1\",\n \"position\": \"top\",\n \"uid\": \"OHJakQICQD6gTD7skx4EWA\",\n \"name\": \"Gene Annotations (hg19)\",\n \"options\": {\n \"name\": \"Gene Annotations (hg19)\"\n },\n \"maxWidth\": 4294967296,\n \"maxZoom\": 22\n },\n {\n \"chromInfoPath\": \"//s3.amazonaws.com/pkerp/data/hg19/chromSizes.tsv\",\n \"type\": \"horizontal-chromosome-labels\",\n \"position\": \"top\",\n \"name\": \"Chromosome Labels (hg19)\",\n \"height\": 30,\n \"uid\": \"N_w4XVIpTPSpq2xBVTToLA\",\n \"options\": {}\n }\n ],\n \"left\": [\n {\n \"type\": \"vertical-gene-annotations\",\n \"width\": 60,\n \"tilesetUid\": \"OHJakQICQD6gTD7skx4EWA\",\n \"server\": \"http://higlass.io/api/v1\",\n \"position\": \"left\",\n \"name\": \"Gene Annotations (hg19)\",\n \"options\": {\n \"labelPosition\": \"bottomRight\",\n \"name\": \"Gene Annotations (hg19)\"\n },\n \"uid\": \"BtHSrxzrSUy21KQ7D6lmZA\",\n \"maxWidth\": 4294967296,\n \"maxZoom\": 22\n },\n {\n \"chromInfoPath\": \"//s3.amazonaws.com/pkerp/data/hg19/chromSizes.tsv\",\n \"type\": \"vertical-chromosome-labels\",\n \"position\": \"left\",\n \"name\": \"Chromosome Labels (hg19)\",\n \"width\": 30,\n \"uid\": \"V74xYbctSbKB2XSesy2Glg\",\n \"options\": {}\n }\n ],\n \"center\": [\n {\n \"uid\": \"c1\",\n \"type\": \"combined\",\n \"height\": 200,\n \"contents\": [\n {\n \"server\": \"http://higlass.io/api/v1\",\n \"tilesetUid\": \"CQMd6V_cRw6iCI_-Unl3PQ\",\n \"type\": \"heatmap\",\n \"position\": \"center\",\n \"options\": {\n \"colorRange\": [\n \"#FFFFFF\",\n \"#F8E71C\",\n \"#F5A623\",\n \"#D0021B\"\n ],\n \"maxZoom\": null,\n \"labelPosition\": \"bottomRight\",\n \"name\": \"Rao et al. (2014) GM12878 MboI (allreps) 1kb\"\n },\n \"uid\": \"QGf8KgUsSPCoVlk-EPWn3w\",\n \"name\": \"Rao et al. (2014) GM12878 MboI (allreps) 1kb\",\n \"maxWidth\": 4194304000,\n \"binsPerDimension\": 256,\n \"maxZoom\": 14\n }\n ],\n \"position\": \"center\",\n \"options\": {}\n }\n ],\n \"right\": [],\n \"bottom\": []\n },\n \"initialYDomain\": [\n 619564198.6879103,\n 2480435801.312089\n ],\n \"layout\": {\n \"w\": 6,\n \"h\": 12,\n \"x\": 0,\n \"y\": 0,\n \"i\": \"aa\",\n \"moved\": false,\n \"static\": false\n }\n }\n ],\n \"zoomLocks\": {\n \"locksByViewUid\": {},\n \"locksDict\": {}\n },\n \"locationLocks\": {\n \"locksByViewUid\": {},\n \"locksDict\": {}\n }\n};\n\nelement.append('<div><div id=\"higlass\" class=\"full-dim\"></div></div>');\n\nrequirejs.config({\n paths: {\n \"hglib\": \"//higlass.io/assets/scripts-third-party/hglib\"\n },\n waitSeconds: 2\n});\n\nrequire(['hglib'], function(hglib) {\n hglib.createHgComponent( \n document.querySelector(\"#higlass\"), \n config, \n { bounded: true}, \n function (api) { window.higlassApi = api; }\n );\n});", | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"collapsed": true, | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "", | |
"execution_count": null, | |
"outputs": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3", | |
"language": "python" | |
}, | |
"language_info": { | |
"file_extension": ".py", | |
"codemirror_mode": { | |
"version": 3, | |
"name": "ipython" | |
}, | |
"mimetype": "text/x-python", | |
"pygments_lexer": "ipython3", | |
"version": "3.5.2", | |
"nbconvert_exporter": "python", | |
"name": "python" | |
}, | |
"toc": { | |
"toc_window_display": false, | |
"toc_number_sections": true, | |
"toc_cell": false, | |
"toc_threshold": 6 | |
}, | |
"gist": { | |
"id": "", | |
"data": { | |
"description": "higlass-in-jupyter", | |
"public": false | |
} | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment