Easier way to run workflows, configurable across environments
Project description
Welcome to Janis-Runner
Janis. is a workflow assistant designed to make the process of building and running workflows easier.
Quick start
pip3 install janis-pipelines[runner]
You can run a workflow in CWLTool with the following command line:
janis run myWorkflow.py --engine cwltool
Engines
There are currently 2 engines that janis.runner
supports:
- CWLTool
- Cromwell
CWLTool (default)
Due to the way CWLTool provides metadata, support for CWLTool is very basic, and limited to submitting workflows and linking the outputs. It doesn't allow you to disconnect and reconnect later. It's enough as a proof of concept and for very basic workflows.
You should include the --logDebug
parmeter to see the output of CWLTool.
Cromwell
Cromwell can be run in two modes:
-
Connect to an existing instance (well supported) - include the
--cromwell-url
argument with the port to allow Janis.runner to correctly connect to this instance. -
Run and manage it's own instance (very limited) - Currently not very well supported, the main problem is for reporting, janis will spin up a server instance of Cromwell, but can sometimes lose the Cromwell instance (The process id is logged on start, or you can find it with
pgrep java
).
Both of these options provide reporting and progress tracking due to Cromwell's extensive metadata endpoint. The TaskID (6 hex characters) is included as a label on the workflow. You can disconnect from a job and reconnect with this TaskID through the command:
janis watch $tid
A screenshot of the running the example whole genome germline pipeline
(for a targeted sample) can be found below. (All engines can support this through a generalised metadata semantic (TaskMetadata
),
Neither CWLTool or Toil support much polling of metadata).
Extra Cromwell comments:
- The TaskID is bound as a label on GCP instances (as
tid
, allowing you to query this information). - Janis uses the development spec of WDL, requiring Cromwell-42 or higher.
- If asking Janis to start its own Cromwell instance, it requires the jar to be exported as
$cromwelljar
.
Environments
Environments are a combination of an Engine and a Filesystem. They save you from having to constantly specify your engine (+ parameters).
Environment information is used as a template, in which the task stores its own copy of the filesystem and engine. This was chosen as it allows a task's output to be relocated without losing workflow metadata.
Adding and deleting environments are currently UNAVAILABLE.
Actions:
- List:
janis environment list
- Create: unavailable (proposed:
janis environment create 'env' --engine 'engineId' --filescheme 'fsid'
) - Delete unavailable (proposed:
janis environment -d 'env'
)
Filesystem
There is a weak concept of a filesystem for where your workflow is executed. This tool is really only developed
for using the LocalFileSystem
. However if you run your GCP
Supported filesystems:
- LocalFileScheme
- SSHFileScheme (
identifier
,connectionstring
) - I'd recommend creating an SSH shortcut to avoid persisting personal details in database. Janis uses the connection string like so:scp connectionstring:/path/to/output /local/persist/path
Data structure
Janis stores an SQLite database of environments and task pointers at ~/.janis/janis.db
(this value is currently
not overrideable). When a task is started, a database and workflow files are copied to a generated output folder
(default: ~/janis-runner/${tid}/task.db
).
There's work required for cleaning up this
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for janis-pipelines.runner-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d029a81fe114afa3e6a901c0ff74b95e43b754a85624cc7a2839c772ab892f1 |
|
MD5 | 0932d7c4531b4156e7159ee190954c7a |
|
BLAKE2b-256 | a8f407f93b96f4a8e942173f637b5437e4074501553238511667ae8bc4262ee6 |
Hashes for janis_pipelines.runner-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27f657cbb217436da59d88ce28588bef6fde4974e3cf15d7a54dc77bd8d578fe |
|
MD5 | 9e2e47095b938d7553f94f60bc14041f |
|
BLAKE2b-256 | 286c64415f440d4b7c8da1ff8e2a8e8e2c7638850a42a869d780a9ce22fe37de |