Differences between revisions 1 and 12 (spanning 11 versions)
Revision 1 as of 2013-03-22 21:23:53
Size: 4460
Editor: KeiichiroOno
Comment:
Revision 12 as of 2016-04-26 21:25:02
Size: 3551
Editor: bdemchak
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Cytoscape recognizes a number of optional command line arguments, including run-time specification of network files, attribute files, and session files. This is the output generated when the cytoscape is executed with the "-h" or "--help" flag: {{{#!wiki caution
'''This is a legacy document'''

This page has been deprecated and is no longer updated. The current version of the
Cytoscape manual can be found at http://manual.cytoscape.org/
}}}

Cytoscape
recognizes a number of optional command line arguments, including run-time specification of network files, node and edge data files, and session files. This is the output generated when Cytoscape is executed with the "-h" or "--help" flag:
Line 4: Line 10:
usage: java -Xmx512M -jar cytoscape.jar [OPTIONS]
 -h,--help          Print this message.
 -v,--version        Print the version number.
 -s,--session <file>      Load a cytoscape session (.cys) file.
 -N,--network <file>   Load a network file (any format).
 -e,--edge-attrs <file>    Load an edge attributes file (edge attribute format).
 -n,--node-attrs <file> Load a node attributes file (node attribute format).
 -m,--matrix <file> Load a node attribute matrix file (table).
 -p,--plugin <file> Load a plugin jar file, directory of jar files,
                                     plugin class name, or plugin jar URL.
 -P,--props <file>
Load cytoscape properties file (Java properties
                                    format) or individual property: -P name=value.
 -V,--vizmap <file>   Load vizmap properties file (Java properties format).
usage: cytoscape.{sh|bat} [OPTIONS]
 -h,--help Print this message.
 -v,--version Print the version number.
 -s,--session <file> Load a cytoscape session (.cys) file.
 -N,--network <file> Load a network file (any format).
 -P,--props <file> Load cytoscape properties file (Java properties
                       format) or individual property: -P name=value.
 -V,--vizmap <file> Load vizmap properties file (Cytoscape VizMap
                      
format).
 -S,--script <file> Execute commands from script file.
 -R,--rest <port> Start a rest service.
Line 18: Line 22:
Any file specified for an option may be specified as either a path or as a URL.  For example you can specify a network as a file (assuming that myNet.sif exists in the current working directory): {{{cytoscape.sh -N myNet.sif}}}. Or you can specify a network as a URL: {{{cytoscape.sh -N http://example.com/myNet.sif}}}.
Any file specified for an option may be specified as either a path or as a URL. For example you can specify a network as a file (assuming that myNet.sif exists in the current working directory): {{{cytoscape.sh -N myNet.sif}}}.

Note: if there are spaces in the file path, be sure to put quotes around it: {{{cytoscape.bat -N "C:\Program Files\Cytoscape\sampleData\galFiltered.sif"}}}.

Or you can specify a network as a URL: {{{cytoscape.sh -N http://example.com/myNet.sif}}}.
Line 24: Line 33:
||-e,--edge-attrs <file> ||This option specifies an edge attributes file. You may specify as many edge attribute files as desired on a single command line. ||
||-n,--node-attrs <file> ||This option specifies a node attributes file. You may specify as many node attribute files as desired on a single command line. ||
||-m,--matrix <file> ||This option specifies a data matrix file. In a biological context, the data matrix consists of expression data. All data matrix files are read into node attributes. You may specify as many data matrix files as desired on a single command line. ||
||-p,--plugin <file> ||This option specifies a cytoscape plugin (.jar) file to be loaded by Cytoscape. This option also subsumes the previous "resource plugin option". You may specify a class name that identifies your plugin and the plugin will be loaded if the plugin is in Cytoscape's CLASSPATH. For example, assuming that the class !MyPlugin can be found in the CLASSPATH, you could specify the plugin like this: {{{cytoscape.sh -p MyPlugin.class}}}. A final means of specifying plugins is to specify a file name whose contents contain a list of plugin jar files. ||
Line 29: Line 34:
||-V,--vizmap <file> ||This option specifies a visual properties file. || ||-V,--vizmap <file> ||This option specifies a Style file. ||
||-S,--script <file> ||This option executes commands from a specifed Cytoscape script file.||
||-R,--rest <port> ||This option starts a Cytoscape REST service on the specified port.||
Line 31: Line 38:
All options described above (including plugins) can be loaded from the GUI once Cytoscape is running. All options described above (except for starting a REST service) can be accessed from the menu once Cytoscape is running.

This is a legacy document

This page has been deprecated and is no longer updated. The current version of the Cytoscape manual can be found at http://manual.cytoscape.org/

Cytoscape recognizes a number of optional command line arguments, including run-time specification of network files, node and edge data files, and session files. This is the output generated when Cytoscape is executed with the "-h" or "--help" flag:

usage: cytoscape.{sh|bat} [OPTIONS]
 -h,--help             Print this message.
 -v,--version          Print the version number.
 -s,--session <file>   Load a cytoscape session (.cys) file.
 -N,--network <file>   Load a network file (any format).
 -P,--props <file>     Load cytoscape properties file (Java properties
                       format) or individual property: -P name=value.
 -V,--vizmap <file>    Load vizmap properties file (Cytoscape VizMap
                       format).
 -S,--script <file>    Execute commands from script file.
 -R,--rest <port>      Start a rest service.

Any file specified for an option may be specified as either a path or as a URL. For example you can specify a network as a file (assuming that myNet.sif exists in the current working directory): cytoscape.sh -N myNet.sif.

Note: if there are spaces in the file path, be sure to put quotes around it: cytoscape.bat -N "C:\Program Files\Cytoscape\sampleData\galFiltered.sif".

Or you can specify a network as a URL: cytoscape.sh -N http://example.com/myNet.sif.

Argument

Description

-h,--help

This flag generates the help output you see above and exits.

-v,--version

This flag prints the version number of Cytoscape and exits.

-s,--session <file>

This option specifies a session file to be loaded. Since only one session file can be loaded at a given time, this option may only specified once on a given command line. The option expects a .cys Cytoscape session file. It is customary, although not necessary, for session file names to contain the .cys extension.

-N,--network <file>

This option is used to load all types of network files. SIF, GML, and XGMML files can all be loaded using the -N option. You can specify as many networks as desired on a single command line.

-P,--props <file>

This option specifies Cytoscape properties. Properties can be specified either as a properties file (in Java's standard properties format), or as individual properties. To specify individual properties, you must specify the property name followed by the property value where the name and value are separated by the '=' sign. For example to specify the defaultSpeciesName: cytoscape.sh -P defaultSpeciesName=Human. If you would like to include spaces in your property, simply enclose the name and value in quotation marks: cytoscape.sh -P "defaultSpeciesName=Homo Sapiens". The property option subsumes previous options -noCanonicalization, -species, and -bioDataServer. Now it would look like: cytoscape.sh -P defaultSpeciesName=Human -P noCanonicalization=true -P bioDataServer=myServer.

-V,--vizmap <file>

This option specifies a Style file.

-S,--script <file>

This option executes commands from a specifed Cytoscape script file.

-R,--rest <port>

This option starts a Cytoscape REST service on the specified port.

All options described above (except for starting a REST service) can be accessed from the menu once Cytoscape is running.

Cytoscape_3/UserManual/Command_Line_Arguments (last edited 2016-04-26 22:10:02 by server2)

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux