Flask microservice implementing the Global Alliance for Genomics and Health (GA4GH) Workflow Execution Service (WES) API specification.
cwl-WES (formerly: WES-ELIXIR) is an implementation of the GA4GH WES OpenAPI specification based on Flask and Connexion. It allows clients/users to send workflows for execution, list current and previous workflow runs, and get the status and/or detailed information on individual workflow runs. It interprets workflows and breaks them down into individual tasks, for each task emitting a request that is compatible with the GA4GH Task Execution Service (TES) OpenAPI specification. Thus, for end-to-end execution of workflows, a local or remote instance of a TES service such as TESK or funnel is required.
The service is backed by a MongoDB database and optionally uses JWT token-based authorization, e.g. through ELIXIR AAI. While currently only workflows written in the Common Workflow Language are supported (leveraged by CWL-TES, we are planning to abstract workflow interpretation away from API business logic on the one hand and task execution on the other, thus hoping to provide an abstract middleware layer that can be interfaced by any workflow language interpreter in a pluggable manner.
Note that the project is currently still under active development. Nevertheless, a largely FUNCTIONAL PROTOTYPE is available as of October 2018, hosted at the CSC in Helsinki.
cwl-WES is part of ELIXIR, a multinational effort at establishing and implementing FAIR data sharing and promoting reproducible data analyses and responsible data handling in the Life Sciences. Infrastructure and IT support are provided by ELIXIR Finland at the CSC, the TESK service is being developed and maintained by ELIXIR UK at the EBI in Hinxton, and cwl-WES itself is being developed by ELIXIR Switzerland at the Biozentrum in Basel and the Swiss Institute of Bioinformatics.
See instructions in the deployment directory's README.md file.
Ensure you have the following software installed:
Note: These are the versions used for development/testing. Other versions may or may not work.
Create data directory and required subdiretories
mkdir -p data/cwl_wes/db data/cwl_wes/output data/cwl_wes/tmp
Clone repository
git clone https://github.com/elixir-cloud-aai/cwl-WES.git app
Traverse to app directory
cd app
Place a .netrc file for access to a FTP server in app directory.
Don't forget to replace <USERNAME> and <PASSWORD> with real values.
cat << EOF > .netrc
machine ftp-private.ebi.ac.uk
login <USERNAME>
password <PASSWORD>
EOF
If you do not know what to put here, just creating an empty file
.netrcwith, e.g.,touch .netrcwill be fine for testing purposes. Requirements for this file will hopefully soon be entirely lifted.
vi cwl_wes/config/app_config.yaml
A few configuration settings can be overridden by environment variables.
export <ENV_VAR_NAME>=<VALUE>
| Variable | Description |
|---|---|
| MONGO_HOST | MongoDB host endpoint |
| MONGO_PORT | MongoDB service port |
| MONGO_DBNAME | MongoDB database name |
| MONGO_USERNAME | MongoDB client username |
| MONGO_PASSWORD | MongoDB client password |
| RABBIT_HOST | RabbitMQ host endpoint |
| RABBIT_PORT | RabbitMQ service port |
Build container image
docker-compose build
Run docker-compose services in detached/daemonized mode
docker-compose up -d
Visit Swagger UI
firefox http://localhost:7777/ga4gh/wes/v1/ui
Example values to start a simple CWL test workflow run:
workflow_params: {"input":{"class":"File","path":"ftp://ftp-private.ebi.ac.uk/upload/foivos/test.txt"}}workflow_type: CWLworkflow_type_version: v1.0workflow_url: https://github.com/uniqueg/cwl-example-workflows/blob/master/hashsplitter-workflow.cwlLeave the rest of the values empty and hit the Try it out! button.
Coming soon...
Join us at the 2019 BioHackathon in Paris, organized by ELIXIR Europe (November 18-22)! Check out our project description.
This project is a community effort and lives off your contributions, be it in the form of bug reports, feature requests, discussions, or fixes and other code changes. Please read these guidelines if you want to contribute. And please mind the code of conduct for all interactions with the community.
Development of the app is currently still in alpha stage, and current "versions" are for internal use only. We are aiming to have a fully spec-compliant ("feature complete") version of the app available by the end of 2018. The plan is to then adopt a semantic versioning scheme in which we would shadow WES spec versioning for major and minor versions, and release patched versions intermittently.
This project is covered by the Apache License 2.0 also shipped with this repository.
The project is a collaborative effort under the umbrella of the ELIXIR Cloud and AAI group.
Please contact the project leader for inquiries, proposals, questions etc. that are not covered by the Q&A and Contributing sections.
docker pull lvarin/wes-elixir:fake-home