UGENE provides command line interface (CLI). To learn more about UGENE CLI and commands available read main UGENE User Manual.
This chapter describes how you can create a new command using a schema.
To run a schema from the command line do the following:
- Create the schema in the Workflow Designer. For example on the image below the Align sequences with MUSCLE sample schema is used:
![](/wiki/download/attachments/2097213/schema_example.png)
- Now you should configure aliases for those parameters that you are going to use from the command line. To do it select the Actions ‣ Configure command line aliases item in the main menu or the Configure command line aliases toolbar button. The following dialog appears:
![](/wiki/download/attachments/2097213/configure_cmd_aliases_dialog.png)
It contains the list of objects that corresponds to the elements of the schema. For each object the list of parameters is available for which you can assign command line aliases. For example, assign alias in to parameter Input file (of the Read alignment element):
![](/wiki/download/attachments/2097213/in_alias.png)
And alias out to parameter Output file (of the Write Stockholm element).
![](/wiki/download/attachments/2097213/out_alias.png)
Press the Ok button to save aliases and close the dialog.
- Save the schema to a file: if you follow the example, choose the Actions ‣ Save schema as... item in the main menu, browse for the file location and enter mySchema as the schema name. This name will be used to launch the schema from the command line.
- Launch the schema from the command line:
[path_to_ugene\]ugene --task={schema_name} [--{parameter1}={value1} [--{parameter2}={value2} ...]]
For example on Windows the command can look as follows:
ugene --task=C:\mySchema --in=C:\COI.aln --out=C:\COI.sto
In this example the path to the directory with the UGENE executable is added to the system PATH variable.