HUB
Sign inSign up

lvarin/wes-elixir

By lvarin

•Updated over 6 years ago

cwl-wes

Image
0

763

lvarin/wes-elixir repository overview

⁠cwl-WES

Apache License Build_status Website

⁠Synopsis

Flask⁠ microservice implementing the Global Alliance for Genomics and Health⁠ (GA4GH) Workflow Execution Service⁠ (WES) API specification.

⁠Description

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⁠.

⁠Installation

⁠Kubernetes

See instructions in the deployment directory's README.md file⁠.

⁠Docker
⁠Requirements

Ensure you have the following software installed:

  • Docker (18.06.1-ce, build e68fc7a)
  • docker-compose (1.22.0, build f46880fe)
  • Git (1.8.3.1)

Note: These are the versions used for development/testing. Other versions may or may not work.

⁠Instructions
⁠Set up environment

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 .netrc with, e.g., touch .netrc will be fine for testing purposes. Requirements for this file will hopefully soon be entirely lifted.

⁠Edit/override app config (optional!)
  • Via configuration files:
vi cwl_wes/config/app_config.yaml
  • Via environment variables:

A few configuration settings can be overridden by environment variables.

export <ENV_VAR_NAME>=<VALUE>
  • List of the available environment variables:
VariableDescription
MONGO_HOSTMongoDB host endpoint
MONGO_PORTMongoDB service port
MONGO_DBNAMEMongoDB database name
MONGO_USERNAMEMongoDB client username
MONGO_PASSWORDMongoDB client password
RABBIT_HOSTRabbitMQ host endpoint
RABBIT_PORTRabbitMQ service port
⁠Build & deploy

Build container image

docker-compose build

Run docker-compose services in detached/daemonized mode

docker-compose up -d
⁠Use service

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: CWL
  • workflow_type_version: v1.0
  • workflow_url: https://github.com/uniqueg/cwl-example-workflows/blob/master/hashsplitter-workflow.cwl

Leave the rest of the values empty and hit the Try it out! button.

⁠Q&A

Coming soon...

⁠Contributing

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.

⁠Versioning

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.

⁠License

This project is covered by the Apache License 2.0⁠ also shipped with this repository⁠.

⁠Contact

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.

⁠References

Tag summary
Recent tags
Content type
Image
Digest
Size
259.3 MB
Last updated
over 6 years ago
docker pull lvarin/wes-elixir:fake-home