Loading bigiwg into an an array in javascript?
0
0
Entering edit mode
5.5 years ago
endrebak ▴ 970

I want to load a bigwig-file into an array in javascript. How do I do that? There are several libraries with bigwig-readers, but I am a newb.

Plus points if you can show me how to only fetch data for a specific range.

bigwig javascript • 1.2k views
ADD COMMENT
0
Entering edit mode

context is missing: do you want to load in a browser or in a standalone js application ?

but I am a newb.

it will be hard anyway.

ADD REPLY
0
Entering edit mode

I know there are genome browsers that read bw (igv.js and others), so if I could use their functionality, it would be swell. In a standalone application. I was thinking someone knew how to use bigwig.js or something to load it.

ADD REPLY
0
Entering edit mode

Not sure about javascript unfortunately. But, in python there is a very helpful extension called pyBigWig. You can retrieve specific ranges as you desire and many other features.

https://github.com/deeptools/pyBigWig

ADD REPLY
0
Entering edit mode

I know :) . I use it in my pyranges-library to write to bigwig: https://github.com/biocore-ntnu/pyranges

ADD REPLY

Login before adding your answer.

Traffic: 2300 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6