Build Status

InterMine Web-Services Communication Client Library


// Find and print all the exons associated with eve in D. melanogaster

// If running in node.js, the following line will be necessary:
var intermine = require('imjs');

var flymine   = new intermine.Service({root: ''});
var query     = {
  from: 'Gene',
  select: [
  where: {
    symbol: 'eve',
    organism: {lookup: 'D. melanogaster'}}

flymine.rows(query).then(function(rows) {
  console.log("No. of exons: " + rows.length);
  rows.forEach(function printRow(row) {
    console.log("[" + row[0] + "] " + row[1] + ":" + row[2] + ".." + row[3]);


This library abstracts the functionality of InterMine's web service layer. It is meant for those wishing to build in communication layers to intermine servers, build graphical widgets on top of the webservice APIs, or perform client side scripting.

The purpose of this library is to expose a uniform interface to the web-service API for both node.js and browser based programming, wrapping some of the minor unpleasantness of dealing with raw HTTP requests, as well as the more major issue of dealing with the path-query format, which is complex.



For API documentation see For general useage documentation and information about InterMine, see


All intermine code is free software released under the LGPL licence You are free to modify and redistribute this software.

The copyright is held by Alex Kalderimis


For help with this library, or the use of intermine in general, please contact