Skip to content

idekerlab/cy-rest-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cyREST Examples for Node.js

Introduction

This is a repository of sample scripts to automate workflow using cyRest and node.js.

Requirements

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

Install Dependencies

npm install

Basic Workflows

1. 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.

2. Streaming results from multiple web services

(This repo is still under construction. More coming soon...)

Advanced Workflows

About

Node.js examples for cyREST module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published