Skip to content
/ bbi-js Public
forked from remimarenco/bbi-js

Prototype for javascript reading BigWig files

Notifications You must be signed in to change notification settings

jgoecks/bbi-js

 
 

Repository files navigation

bbi-js

Prototype for javascript reading BigWig files

To see:

Basic usage to read a bigwig file using JavaScript:

require(['bigwig'], function(bigwig) {
	var bbURI = './miapaca2_rnaseq.bigwig';
	$.when(bigwig.makeBwg(bbURI)).then(function(bb, err) {
		$('body').append("<h3>Information about " + bbURI + "</h3>");
		$('body').append("Version: " + bb.version + "<br>");
		$('body').append("Number of Zoom Levels: " + bb.numZoomLevels + "<br>");

	    $.when(bb.readWigData(1, 0, 249250620)).then(function(data) {
			$('body').append("Length: "+ data.length +"<br>");
        	$('body').append("readWigData: ");
	        $('body').append($.map(data, function(obj){return JSON.stringify(obj.score)}).join(' '));
    	    $('body').append("<br>");
		});
});

About

Prototype for javascript reading BigWig files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.5%
  • Python 1.1%
  • Other 0.4%