biojs-rest-psicquic

1.3.0 • Public • Published

biojs-rest-psicquic

A JavaScript library to query Psicquic servers

Getting Started

Installing

In order to get started, you'll want to install biojs-rest-psicquic with npm.

npm install biojs-rest-psicquic

Working with biojs-rest-psicquic

First require biojs-rest-psicquic and set the server url to query.

var psicquic = require('biojs-rest-psicquic'), 
    url = 'http://www.ebi.ac.uk/Tools/webservices/psicquic/intact/webservices/current/search';
    
    psicquic.url(url);

Then simply set the query parameters and process the responce

psicquic.params({firstResult:1, maxResults:5}).query('species:human', function(err, resp, body){
    console.log(body);
});

To get the number of interactions in a given query use the count method

psicquic.count('species:human', function(err, resp, body){
    console.log(body);
});

Dependents (1)

Package Sidebar

Install

npm i biojs-rest-psicquic

Weekly Downloads

1

Version

1.3.0

License

Apache 2

Last publish

Collaborators

  • secevalliv