Arvados Composer¶
Arvados Composer is a graphical workflow editor integrated with Arvados. It is originally based on Rabix Composer
Running from Composer¶
This is described in the walkthrough
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.
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.
Docker images used by your workflow must be uploaded using arv-keepdocker
In particular, you may need to upload the arvados/jobs image:
$ arv-keepdocker arvados/jobs
If the Docker image isn't found, launching the workflow from composer will fail (unfortunately, as of this writing, there is no error message). So if launching the workflow isn't working, this should be the first thing to check.
Registering the workflow to run from Workbench (and also running from the command line)¶
Composer workflow are stored in git repository managed by Arvados.
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.
The repositories page provides information on how to to clone the repository, see also Working with an Arvados git repository in the user guide.
Once you have cloned the repository, you can submit a worklow from the command line using arvados-cwl-runner
$ arvados-cwl-runner composerdemo.cwl
To register a workflow so it can be executed through workbench, use arvados-cwl-runner --create-workflow
$ arvados-cwl-runner --create-workflow composerdemo.cwl xxxxx-7fd4e-dfynud09qop82ji
After doing so, you will be able to run the workflow on Workbench using "Run a process".
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.)
$ arvados-cwl-runner --update-workflow xxxxx-7fd4e-dfynud09qop82ji composerdemo.cwl
Updated by Peter Amstutz about 5 years ago · 3 revisions