npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

imjs

v4.0.0

Published

Client library for communication with InterMine web-services

Downloads

752

Readme

IMJS

Build Status

InterMine Web-Services Communication Client Library

SYNOPSIS

// 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: 'www.flymine.org/query'});
var query     = {
  from: 'Gene',
  select: [
    'exons.symbol',
    'chromosome.primaryIdentifier',
    'exons.chromosomeLocation.start',
    'exons.chromosomeLocation.end'
  ],
  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]);
  });
});

DESCRIPTION

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.

Functionality

  • Data Queries

    Users may make arbitrarily complex queries against an intermine data-warehouse. See the Query class for more information.

  • List Management

    Users may authenticate to their accounts (through the use of web-service tokens) and then have full freedom to create, edit and delete lists they have access to. See the List class for more information.

  • Analysis

    Users may perform enrichment analysis over lists they have access to. See Service#enrichment and List#enrichment for more information.

  • Data Model Introspection

    The structure of the data available in the data model is available for instropection through the Model class. This is particularly useful for constructing dynamic data-driven interfaces.

DOCUMENTATION

For API documentation see http://intermine.org/imjs/. For general usage documentation and information about InterMine, see http://intermine.org/developers.

Developing IMJS

To build the project see developing.md and to release a new version, see release-procedure.md

LICENCE

All intermine code is free software released under the LGPL licence http://www.gnu.org/copyleft/lesser.html. You are free to modify and redistribute this software.

The copyright is held by Alex Kalderimis [email protected].

SUPPORT

For help with this library, or the use of intermine in general, please contact [email protected].