Repository navigation
View config
Peter Kerpedjiev edited this page Jan 25, 2017
·
1 revision
Upload a view config to the server:
curl -H "Content-type: application/json" -X POST -d '{"zoomFixed": false, "views": [{"uid": "aa", "initialYDomain": [-7450526.032496989, 3103144510.0324965], "autocompleteSource": "//52.45.229.11/suggest/?d=dd&", "initialXDomain": [0.9999940097332001, 3095693983.000006], "tracks": {"bottom": [], "top": [{"uid": "D00ffLKHSGqwp4r64sSU7A", "tilesetUid": "dd", "server": "52.45.229.11", "position": "top", "height": 60, "type": "horizontal-gene-annotations", "options": {"name": "Gene Annotations"}, "name": "Gene Annotations"}, {"uid": "EqsroYY4Q2iTO8FbU_kwKA", "height": 60, "position": "top", "type": "top-axis", "options": {}, "name": "Top Axis"}], "right": [], "center": [{"position": "center", "type": "combined", "uid": "c1", "contents": [{"uid": "hm1", "tilesetUid": "aa", "server": "52.45.229.11", "position": "center", "type": "heatmap", "options": {"maxZoom": null, "name": "Dixon2015-H1_TB-HindIII-allreps-filtered.10kb.multires.cool", "colorRange": ["#FFFFFF", "#F8E71C", "#F5A623", "#D0021B"]}, "name": "Dixon2015-H1_TB-HindIII-allreps-filtered.10kb.multires.cool"}], "height": 200}], "left": [{"uid": "SVYNEiMITAe_K60zCH_7vQ", "tilesetUid": "dd", "server": "52.45.229.11", "width": 60, "position": "left", "type": "vertical-gene-annotations", "options": {"name": "Gene Annotations", "labelPosition": "bottomRight"}, "name": "Gene Annotations"}]}, "chromInfoPath": "//s3.amazonaws.com/pkerp/data/hg19/chromSizes.tsv", "genomePositionSearchBoxVisible": true}], "editable": true, "exportViewUrl": "//52.45.229.11/viewconfs/", "zoomLocks": {"locksByViewUid": {}, "zoomLocksDict": {}}, "trackSourceServers": ["52.45.229.11"]}' http://localhost:80/viewconfs/
This will return a simple response containing the UID of the saved config file.
{"uid": "CN3BjjKvTDa3oC_p4F6ixQ"}