Entering edit mode
                    6.4 years ago
        endrebak
        
    
        ▴
    
    980
    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.
context is missing: do you want to load in a browser or in a standalone js application ?
it will be hard anyway.
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.
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
I know :) . I use it in my pyranges-library to write to bigwig: https://github.com/biocore-ntnu/pyranges