In [ ]:
%%bash
source activate py27
conda install numpy scipy pandas h5py
cooler dump -t pixels --join GSM2644945_Untreated-R1.100000.cool.gz > /output_dir/GSM2644945.txt
In [ ]:
%%bash
source activate py27
cooler csort hg19.chrom.sizes [input_origami_contact_list]
cooler cload tabix hg19.chrom.sizes:$bin_size [input_origami_contact_list].sorted.txt.gz [input_origami_contact_list].cool"
cooler coarsegrain --no-balance [input_origami_contact_list].cool"
In [ ]:
!docker exec higlass-container python higlass-server/manage.py ingest_tileset \
--filename "/data/[input_origami_contact_list].multires.cool" \
--datatype matrix --filetype cooler --uid cooler-demo
In [ ]:
%%javascript
var config = {
"editable": true,
"zoomFixed": false,
"trackSourceServers": [
"http://higlass.io/api/v1"
],
"exportViewUrl": "http://higlass.io/api/v1/viewconfs/",
"views": [
{
"uid": "aa",
"initialXDomain": [
509161199.6251172,
2590838800.374883
],
"autocompleteSource": "http://higlass.io/api/v1/suggest/?d=OHJakQICQD6gTD7skx4EWA&",
"genomePositionSearchBoxVisible": true,
"chromInfoPath": "//s3.amazonaws.com/pkerp/data/hg19/chromSizes.tsv",
"tracks": {
"top": [
{
"type": "horizontal-gene-annotations",
"height": 60,
"tilesetUid": "OHJakQICQD6gTD7skx4EWA",
"server": "http://higlass.io/api/v1",
"position": "top",
"uid": "OHJakQICQD6gTD7skx4EWA",
"name": "Gene Annotations (hg19)",
"options": {
"name": "Gene Annotations (hg19)"
},
"maxWidth": 4294967296,
"maxZoom": 22
},
{
"chromInfoPath": "//s3.amazonaws.com/pkerp/data/hg19/chromSizes.tsv",
"type": "horizontal-chromosome-labels",
"position": "top",
"name": "Chromosome Labels (hg19)",
"height": 30,
"uid": "N_w4XVIpTPSpq2xBVTToLA",
"options": {}
}
],
"left": [
{
"type": "vertical-gene-annotations",
"width": 60,
"tilesetUid": "OHJakQICQD6gTD7skx4EWA",
"server": "http://higlass.io/api/v1",
"position": "left",
"name": "Gene Annotations (hg19)",
"options": {
"labelPosition": "bottomRight",
"name": "Gene Annotations (hg19)"
},
"uid": "BtHSrxzrSUy21KQ7D6lmZA",
"maxWidth": 4294967296,
"maxZoom": 22
},
{
"chromInfoPath": "//s3.amazonaws.com/pkerp/data/hg19/chromSizes.tsv",
"type": "vertical-chromosome-labels",
"position": "left",
"name": "Chromosome Labels (hg19)",
"width": 30,
"uid": "V74xYbctSbKB2XSesy2Glg",
"options": {}
}
],
"center": [
{
"uid": "c1",
"type": "combined",
"height": 200,
"contents": [
{
"server": "http://higlass.io/api/v1",
"tilesetUid": "CQMd6V_cRw6iCI_-Unl3PQ",
"type": "heatmap",
"position": "center",
"options": {
"colorRange": [
"#FFFFFF",
"#F8E71C",
"#F5A623",
"#D0021B"
],
"maxZoom": null,
"labelPosition": "bottomRight",
"name": "Rao et al. (2014) GM12878 MboI (allreps) 1kb"
},
"uid": "QGf8KgUsSPCoVlk-EPWn3w",
"name": "Rao et al. (2014) GM12878 MboI (allreps) 1kb",
"maxWidth": 4194304000,
"binsPerDimension": 256,
"maxZoom": 14
}
],
"position": "center",
"options": {}
}
],
"right": [],
"bottom": []
},
"initialYDomain": [
619564198.6879103,
2480435801.312089
],
"layout": {
"w": 6,
"h": 12,
"x": 0,
"y": 0,
"i": "aa",
"moved": false,
"static": false
}
}
],
"zoomLocks": {
"locksByViewUid": {},
"locksDict": {}
},
"locationLocks": {
"locksByViewUid": {},
"locksDict": {}
}
};
element.append('<div><div id="higlass" class="full-dim"></div></div>');
requirejs.config({
paths: {
"hglib": "//higlass.io/assets/scripts-third-party/hglib"
},
waitSeconds: 2
});
require(['hglib'], function(hglib) {
hglib.createHgComponent(
document.querySelector("#higlass"),
config,
{ bounded: true},
function (api) { window.higlassApi = api; }
);
});