Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

cyREST Examples for Node.js


This is a repository of a basic sample script to automate a Cytoscape workflow using cyRest and node.js.


  • Node.js
  • Latest version of cyREST
  • Cytoscpae 3.1.1 and later

Install Dependencies

npm install

Basic Workflow: Build a Network from NCBI Gene Database Search Result

This is a simple workflow to do the following:

  1. Send query to [NCBI Gene] database by bionode-ncbi module.
  2. From the result, extract Entrez gene ID.
  3. Send the list of genes to BioGIRD via BioJS PSICQUIC client.
  4. Convert the list of interactions into Cytoscape.js compatible JSON.
  5. Send it to Cytoscape via cyREST
  6. Apply layout, edge bundling, and Visual Style.

The following is the result by sending this query to NCBI Gene:

"Homo sapiens"[Organism] AND proteasome[Gene Ontology] AND alive[property]

You can play with some other queries. Note that if the returned list of the genes is too big, BioGRID may return empty result.

You can’t perform that action at this time.