-
Notifications
You must be signed in to change notification settings - Fork 13
Quick Start Guide for R and Python Programmers
This page is here for legacy information. For more recent info on accessing Cytoscape through R or Python, please refer to the Cytoscape Automation Repository.
- Java 8 (REQUIRED! Does NOT wirk with Java 7/6)
- Cytoscape 3.2.1+
- cyREST (Installation Guide)
- Install py2cytoscape:
pip install py2cytoscape
- Some recommended dependencies:
- requests
- pandas
- NetworkX
- igraph
- pygraphviz
- Or, you can simply use Anaconda distribution to install all of popular scientific computing packages at once:
- RStudio (Highly recommended)
- Recommended packages
- igraph
- httr
- RJSON
Currently, wrapper for R is under development by Bioconductor team. For now, you need to use raw REST API to use cyREST features.
cyREST is designed to use with other tools to build reproducible workflows. And Docker is recommended to make your analysis environment portable. If you prefer running your notebook/RStudio server in Docker Container, you can find examples from these repositories:
- Clone this repository:
- Python examples for cyREST
git clone https://github.com/idekerlab/cy-rest-python.git
- Go into the cloned directory
- Read this document
- Start IPython Notebook:
ipython notebook
- Click index.ipynb
Note: For Python users, there are two ways to call cyREST features;
- Call raw REST API using HTTP client
- Use py2cytoscape instead
Essentially, py2cytoscape is a syntactic sugar for Python users. I recommend to use py2cytoscape because it eliminates lots of boilerplate code.
Please read this for more background about this topic.
- Clone this repository:
- R examples for cyREST
git clone https://github.com/idekerlab/cy-rest-R.git
- Go into the cloned directory
- Read this document
- Start RStudio
- Start from Basic tutorials in the r_markdown directory
Note: We don't have fully-featured R wrapper yet and you need to call raw REST API from R to call cyREST functions. We are working on it with Bioconductor team. Please be patient...
Send an email to me (kono at ucsd edu.)
© 2014-2016 The Cytoscape Consortium
Developed and Maintained by Keiichiro Ono (UC, San Diego Trey Ideker Lab)