biojs-vis-seqlogo
Version:
A sequence logo visualizer
9 lines (8 loc) • 359 B
JavaScript
// if you don't specify a html file, the sniper will generate a div
var app = require("biojs-vis-seqlogo");
var xhr = require("xhr");
xhr("./data/example.json", function(err,resp,body){
var data = JSON.parse(body);
var instance = new app({el: yourDiv,data: data, columnInfo: false, xaxis: false, yaxis: false, column_width: 15});
instance.render();
});