A NodeJS package for parsing Molecular Interaction JSON data produced by JAMI
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>
$.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.
});