Project

General

Profile

Arvados Composer » History » Version 1

Peter Amstutz, 09/26/2019 05:21 PM

1 1 Peter Amstutz
h1. Arvados Composer
2
3
Arvados Composer is a graphical workflow editor integrated with Arvados.  It is originally based on "Rabix Composer":https://github.com/rabix/composer
4
5
h2. Running from Composer
6
7
This is described in the "walkthrough":https://doc.arvados.org/user/composer/composer.html
8
9
You can paste in a keep reference into the file input, in the form "keep:portabledatahash+123/path/to/file.txt".  You currently you cannot choose files through Composer.  However, when you press "Run" it will open up a Workbench workflow submission page in a new tab.  You are able to choose Workflow inputs here.
10
11
Be aware that Composer marks inputs as "optional" by default.  At least one input needs to be marked as "required".  If all inputs are optional (not required, null by default) the Workbench page for choosing inputs will be skipped, which may lead to confusion.
12
13
h2. Registering the workflow to run from Workbench (and also running from the command line)
14
15
Composer workflow are stored in git repository managed by Arvados.
16
17
From Composer, the repositories list can be accessed by clicking on the "gear" icon under "My Repositories", or the "Repositories" link on the Workbench drop-down menu.
18
19
The repositories page provides information on how to to clone the repository, see also "Working with an Arvados git repository":https://doc.arvados.org/v1.4/user/tutorials/git-arvados-guide.html in the user guide.
20
21
Once you have cloned the repository, you can "submit a worklow from the command line using arvados-cwl-runner":https://doc.arvados.org/v1.4/user/cwl/cwl-runner.html
22
23
<pre>
24
$ arvados-cwl-runner composerdemo.cwl
25
</pre>
26
27
To register a workflow so it can be executed through workbench, use "arvados-cwl-runner --create-workflow":https://doc.arvados.org/v1.4/user/tutorials/writing-cwl-workflow.html
28
29
<pre>
30
$ arvados-cwl-runner --create-workflow composerdemo.cwl
31
xxxxx-7fd4e-dfynud09qop82ji
32
</pre>
33
34
After doing so, you will be able to run the workflow on Workbench using "Run a process".
35
36
You can update a workflow definition using --update-workflow.  You need to know the UUID of the workflow record (this is printed out when you run --create-workflow, or can be found by browsing the workflows list on Workbench.)
37
38
<pre>
39
$ arvados-cwl-runner --update-workflow xxxxx-7fd4e-dfynud09qop82ji composerdemo.cwl
40
</pre>