Size: 1420
Comment:
|
Size: 2164
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 23: | Line 23: |
'''''Commands''''' is the built-in Cytoscape feature to automate your workflow as a simple script. |
[[attachment:CommandTool.png]] '''''Commands''''' is the built-in Cytoscape feature to automate your workflow as a simple script. You can learn more about this feature in this section: * [[Command_Tool|Command Tool]] |
Line 34: | Line 40: |
===== Commands REST API ===== In addition to running scripts, Commands have REST API to access the By default, this feature is disables. To run REST server for Commands, please follow these steps: 1. Open a terminal session: * PowerShell (For windows) * Terminal or [[|iTerm]] (For Mac) * Terminal (For Linux) 1. Start Cytoscape from command-line: For Mac/Linux {{{ ./cytoscape.sh }}} For Windows {{{ ./cytoscape.bat }}} 1. {{{ }}} (TBD) ===== cyREST ===== cyREST is available from ==== Debugging your workflows ==== (TBD) |
Programmatic Access to Cytoscape Features
In this section, you will learn how to use programmatic access features for advanced Cytoscape users.
Topics
- Commands
- RESTful API
- Command REST API
- cyREST
Background
Cytoscape has intuitive graphical user interface for interactive network data integration, analysis, and visualization. It is a great way to exploratory analyze your data sets, but what happens if you have hundreds of data files? It is virtually impossible to apply same operations to hundreds of networks manually with GUI.
More importantly, although you can save your results as session files, you cannot save your workflows if your analysis is based on point-and-click GUI operation. Recording workflows is the key feature for reproducible data analysis, but it was a missing feature in past versions for Cytoscape. Latest version of Cytoscape has several options to script and automate your workflows.
Options
There are two ways to access Cytoscape programmatically: Commands and RESTful API.
Commands
Commands is the built-in Cytoscape feature to automate your workflow as a simple script. You can learn more about this feature in this section:
Sample Scripts
(TBD)
RESTful API
In some cases, you may need to use fully featured programming languages, such as Python, R, Ruby, or JavaScript,
Commands REST API
In addition to running scripts, Commands have REST API to access the
By default, this feature is disables. To run REST server for Commands, please follow these steps:
- Open a terminal session:
PowerShell (For windows)
- Terminal or [[|iTerm]] (For Mac)
- Terminal (For Linux)
- Start Cytoscape from command-line:
- For Mac/Linux
./cytoscape.sh
For Windows./cytoscape.bat
- For Mac/Linux
(TBD)
cyREST
cyREST is available from
Debugging your workflows
(TBD)