Quickly load data from a bigwig file in HiGlass.
The live scripts can be found at:
First, register the data fetcher:
import register from "higlass-register";
import { BigwigDataFetcher } from "higlass-bigwig-datafetcher";
register(
{ dataFetcher: BigwigDataFetcher, config: BigwigDataFetcher.config },
{ pluginType: "dataFetcher" }
);
Configure the track in your view config; you should be all set from here!
[...
{
"type": "bar",
"height": 80,
"data": {
"type": "bbi",
"url": "https://aveit.s3.amazonaws.com/higlass/bigwig/example.chr1.10000-1160000.bw",
"chromSizesUrl": "https://aveit.s3.amazonaws.com/higlass/data/sequence/hg38.chrom.sizes",
},
"options": {
...
}
}
]
Note that the chromSizesUrl
option is required.
For an example, see src/index.html
.
To run the test suite:
npm run test
$ git clone https://github.com/higlass/higlass-bigwig-datafetcher
$ cd higlass-bigwig-datafetcher
$ npm install
If you have a local copy of higlass, you can then run this command in the higlass-bigwig-datafetcher directory:
npm link higlass
- Developmental server:
npm start
- Production build:
npm run build