Skip to main content

Workflow Clinic

Workflow Clinic is a GSoC 2026 project focused on improving the portability, reproducibility, and cloud-readiness of scientific workflows.

The project aims to analyze workflow languages such as Nextflow and Snakemake, convert them into a common intermediate representation called WorkflowBundle, and identify workflow portability issues through automated validation and analysis.

By using a common workflow model inspired by the DAW (Data Analysis Workflow) metamodel, Workflow Clinic can reason about workflows independently of their original language and provide consistent diagnostics, recommendations, and future repair capabilities.

Why Workflow Clinic?

Scientific workflows are often tightly coupled to specific execution environments, storage systems, schedulers, or local infrastructure.

This can make workflows difficult to:

  • Share
  • Reproduce
  • Port across platforms
  • Execute in cloud environments
  • Integrate with GA4GH-compliant services

Workflow Clinic aims to help workflow authors identify and resolve these issues before deployment.

Planned Features

Workflow Parsing

  • Nextflow support
  • Snakemake support
  • Common WorkflowBundle representation

Workflow Analysis

  • Portability diagnostics
  • Storage validation
  • Resource validation
  • Metadata validation
  • Workflow structure validation

AI-Assisted Review

  • Rule-based workflow checks
  • AI-assisted diagnostics
  • Confidence-based recommendations

Workflow Repair

  • Suggested fixes
  • Automated transformations
  • Validation of generated fixes

Installation

Clone the Repository

git clone https://github.com/revaarathore11/ga4gh_workflow_clinic_gsoc_2026-.git
cd ga4gh_workflow_clinic_gsoc_2026-

Create a Virtual Environment

python -m venv .venv
source .venv/bin/activate

Install Dependencies

pip install -e ".[dev]"

Development

Run Tests

pytest

Run Linting

ruff check .

Run Formatting

ruff format .

AI Critic & Remediation Guidance (AI-Assisted Review)

Workflow Clinic includes an AI Critic Agent to enrich diagnostic findings with AI-powered, cloud-readiness remediation advice.

Enabling LLM Remediation

To generate AI remediation advice, run the examine command with the --enhance (-e) flag:

workflow-clinic examine main.nf --enhance

🔑 Bring Your Own Key & Model (BYOK & BYOM)

You can configure any supported LiteLLM model (e.g., OpenAI, Gemini, Anthropic, Groq, Mistral) by setting the respective environment variable.

Configuration via .env file (Recommended)

Create a .env file in your working directory to permanently save configuration details:

OPENAI_API_KEY="sk-proj-..."
# CLINIC_MODEL="gpt-4o"  # Optional: Overrides the auto-detected default model

Model Auto-Detection: The AI Critic automatically resolves the appropriate default model based on which API key is present in your environment (e.g., OPENAI_API_KEY defaults to gpt-4o-mini). To view all supported providers and their default models, run:

workflow-clinic list-models

CLI Options

You can temporarily override the default model directly on the command line:

workflow-clinic examine main.nf --enhance --model gpt-4o --api-key sk-proj-...

[!WARNING] Security Notice: Avoid passing explicit --api-key arguments in shared or public environments as they can leak into your shell history (history) or process listings (ps aux). Using environment variables or a .env file is the highly recommended security practice.


Supported Workflow Languages

Current target languages:

  • Nextflow
  • Snakemake

Potential future support:

  • CWL
  • WDL

Architecture Overview

Workflow Files
    ↓
  Parser
    ↓
WorkflowBundle
    ↓
Rule Engine
    ↓
 AI Critic
    ↓
  Doctor

Standards Alignment

Workflow Clinic is being designed with future compatibility in mind for:

  • GA4GH TES
  • GA4GH WES
  • GA4GH TRS
  • Workflow Run RO-Crate

License

This project is licensed under the Apache License 2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

workflow_clinic-0.20.1.tar.gz (75.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

workflow_clinic-0.20.1-py3-none-any.whl (59.2 kB view details)

Uploaded Python 3

File details

Details for the file workflow_clinic-0.20.1.tar.gz.

File metadata

  • Download URL: workflow_clinic-0.20.1.tar.gz
  • Upload date:
  • Size: 75.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for workflow_clinic-0.20.1.tar.gz
Algorithm Hash digest
SHA256 05fac28555f48922cc78e117612724c99929221c96e2276cf8526eaebd4e273a
MD5 6a1afc46edc9e023093aaf9b94a0ad37
BLAKE2b-256 e1e312892585216c3056a17408e01753268fd074448ff6b2fdf03a92d9e31869

See more details on using hashes here.

Provenance

The following attestation bundles were made for workflow_clinic-0.20.1.tar.gz:

Publisher: release.yml on ga4gh/ga4gh_workflow_clinic_gsoc_2026

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file workflow_clinic-0.20.1-py3-none-any.whl.

File metadata

File hashes

Hashes for workflow_clinic-0.20.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f0323689967a8c6aa35a3cfd52c965f189e63442c281957001a7ed8f79a680d
MD5 8a5dd107f870823b912a236d44d2f12e
BLAKE2b-256 48ff08ac4972542e44ae521dc1b210da4312ceb520886239bb8adbc720c50438

See more details on using hashes here.

Provenance

The following attestation bundles were made for workflow_clinic-0.20.1-py3-none-any.whl:

Publisher: release.yml on ga4gh/ga4gh_workflow_clinic_gsoc_2026

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page