mi-model
v0.5.0
Published
Model for representing Molecular Interaction data
Downloads
10
Readme
MI-Model
A NodeJS package for parsing Molecular Interaction JSON data produced by JAMI
Installation
via npm
npm install --save mi-model
MIModel = require('mi-model');
via bower
bower install --save mi-model
<script src="bower_components/mi-model/dist/mi-model.js"></script>
Usage
$.get( "json/EBI-9082861.json", function( data ) {
new MIModel(data).load().then(function(model) {
console.log("model", model);
});
// MIModel(data) returns a Backbone model structure representing the JAMI JSON.
// Optionally you can chain the .load() function which returns
// a Promise to fetch sequence lengths from uniprot.
});