CWL Runner Installation
The recommended CWL runner is cwltool, the reference implementation for the CWL standards.
The installation on Windows can be done following the guide here.
-
Install Windows Subsystem for Linux from the Microsoft Store
-
Install Debian from the Microsoft Store
-
Set Debian as your default WSL 2 distro:
wsl --set-default debian
-
Install Docker Desktop for Windows
- Start Docker Desktop and Navigate to Settings
- Select “Use WSL 2 based engine” in the general tab and apply
- Select “Enable Integration with my default distro” in the resources tab under WSL Integration
-
Start WSL
-
Follow the Instructions for Linux (Debian/Ubuntu)
For installation on Linux (Debian/Ubuntu):
- Run
sudo apt-get update
- Install Python 3 if it is not already installed
sudo apt install python3
- Install python virtual environment
sudo apt install python3.[your version here]-venv
- Create a virtual environment
python3 -m venv env
(named env here, name can vary) - Activate the virtual environment
source env/bin/activate
- Install
cwltool
with pippip install cwltool
- Install conda-forge
- Install cwltool via
conda install -c conda-forge cwltool
cwltool usage
Section titled cwltool usage- If you are on Windows, start the WSL
- Activate the virtual environment
source env/bin/activate
- Run
cwltool
by specifying the CWLWorkflow
orCommandLineTool
description file path and the (optional) inputs file path (you can use relative or full paths):
Minimal example
Section titled Minimal exampleHere is a very simplified example to check, that your cwltool installation functions
-
Store the following as
echo-tool.cwl
-
In the same folder, store the following as
job.yml
-
Now you can execute the tool
- providing an
input
directly via CLI:
or
- providing the
input
via thejob.yml
:
- providing an
-
Both create an
output
file calledmessage.txt
with your specified message.