Differences between revisions 3 and 4
Revision 3 as of 2013-12-04 23:36:37
Size: 1431
Comment:
Revision 4 as of 2013-12-04 23:46:40
Size: 1477
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
Second, and arguably more useful, it will read script files and execute them. Each line in the script file is a command that is sent to a app. Script files may be entered on the Cytoscape command line using the "-S" flag to Cytoscape, or through the '''File → Run...''' menu item. Second, and arguably more useful, it will read script files and execute them. Each line in the script file is a command that is sent to a app. Script files may be entered on the Cytoscape command line using the "-S" flag to Cytoscape, through the '''File → Run...''' menu item, or through '''Tools → Execute Command File'''.

The Command Line Tool provides a simple command-line interface to Cytoscape using the CyCommands API. Any app that registers commands will be available through the Command Tool. The Command Tool provides two main functions: first, a Command Line Dialog is available from Tools → Command Line Dialog, that allows the user to type commands into Cytoscape and see the results in a "Reply Log".

CommandTool.png

Second, and arguably more useful, it will read script files and execute them. Each line in the script file is a command that is sent to a app. Script files may be entered on the Cytoscape command line using the "-S" flag to Cytoscape, through the File → Run... menu item, or through Tools → Execute Command File.

RunScriptCommands.png

The Command Tool uses the CyCommand API to provide help. "help" by itself will list all of the command classes (or namespaces) and "help " followed by a namespace will list all of the commands supported by that namespace. Details of a specific command are available by typing "help " followed by the namespace and command (e.g. "help layout force-directed"). The Command Tool registers the "commandtool" namespace and supports a single command: run, which takes a file argument. Here is the help for the commandtool run command from commandtool:

help commandtool run

  • commandtool run: Run a command script from a file
    • Arguments:
      • [file=value]

Cytoscape_3/UserManual/Command_Tool (last edited 2016-04-26 22:23:19 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