igvteam/juicebox.js

State Explanation

Opened this issue · 2 comments

Is there a sample for how state should be encoded in js?
e.g. this does not seem to work:

browser.loadHicFile({
url: "https://hicfiles.s3.amazonaws.com/hiseq/rpe1/DarrowHuntley-2015/del-Xa-combined.hic", // url string or File object
name: "HIC001", // display name for the map. Optional, defaults to url
state: "2,2,2,5,5,3,KR"

	     });

In the upcoming release (1.5) you will be able to do this. You can also export these objects, this one was actually exported not made by hand.

{
        "url": "http://adam.3dg.io/suhas_juicebox/libs/GM12878_ultra/GM12878_ultra_42B_1k.hic",
        "name": "GM12878_ultra_42B_1k.hic",
        "state": "4,4,5,1211.8375403776047,1187.7888464388025,1.1887980764627957,VC_SQRT",
        "colorScale": "1354.50735154054,255,0,0",
        "nvi": "73375209496,20754"
    
}