Interview-Driven Workflow Construction and Repair in Galaxy

Case Study: Interview-to-Galaxy Construction and Verification

Ebola Virus Infection RNA-seq Analysis (A549 WT vs PTPN13-KO)

1. Executive Summary

This case study documents the complete, autonomous execution of the INTERVIEW → GALAXY pipeline (pipeline-interview-to-galaxy) from the Galaxy Workflow Foundry. Starting from a brief conversational researcher interview describing a host-pathogen RNA-seq experiment, the pipeline produced a fully concrete, validated Galaxy gxformat2 workflow, synthesized a formal test plan, authored reproducible test fixtures, and verified execution to 100% pass status using planemo test --biocontainers inside Docker.


2. Experimental Scenario


3. Pipeline Lifecycle & Phase Audit

[User Interview]
       │
       ▼
[Phase 1: interview-to-freeform-summary] ──► freeform-summary.md
       │
       ▼
[Phase 2: freeform-summary-to-galaxy-interface] ──► freeform-galaxy-interface.md + open-requirements.ledger.yml
       │
       ▼
[Phase 3: freeform-summary-to-galaxy-data-flow] ──► freeform-galaxy-data-flow.md
       │
       ▼
[Phase 4: compare-against-iwc-exemplar] ──► iwc-comparison-notes.md + iwc-exemplar.gxwf.yml
       │
       ▼
[Phase 5: freeform-summary-to-galaxy-template] ──► galaxy-workflow-draft.gxwf.yml
       │
       ▼
[Phase 6: advance-galaxy-draft-step loop] ──► galaxy-workflow.gxwf.yml (concrete gxformat2)
       │
       ▼
[Phase 7: test-data-resolution] ──► test-data-refs.json + test-data/
       │
       ▼
[Phase 8: freeform-summary-to-galaxy-test-plan] ──► galaxy-test-plan.yml
       │
       ▼
[Phase 9: implement-galaxy-workflow-test] ──► galaxy-workflow.gxwf-tests.yml
       │
       ▼
[Phase 10: validate-galaxy-workflow] ──► galaxy-workflow-validation-result.json
       │
       ▼
[Phase 11 & 12: run-workflow-test + debug] ──► workflow-debug-report.md + workflow-test-result.json (PASSED)

Phase 1: Interview Normalization (interview-to-freeform-summary)

Phase 2 & 3: Interface & Data-Flow Design Briefs

Phase 4: Corpus Grounding (compare-against-iwc-exemplar)

Phase 5 & 6: Templating & Autonomous Step Concretization

Phase 7, 8 & 9: Test Data, Test Plan, and Test Implementation

Phase 10: Static Validation (validate-galaxy-workflow)

Phase 11 & 12: Planemo Execution & Triage/Debug Loop


4. Artifact Manifest

Artifact Filename Producer / Mold Role / Description
freeform-summary.md interview-to-freeform-summary Structured narrative summary of researcher interview
freeform-galaxy-interface.md freeform-summary-to-galaxy-interface Formal specification of workflow inputs, outputs, and labels
freeform-galaxy-data-flow.md freeform-summary-to-galaxy-data-flow Abstract DAG topology and collection mapping/reduction brief
open-requirements.ledger.yml Interface / Template Molds Carried obligations ledger (all items audited and resolved)
iwc-comparison-notes.md compare-against-iwc-exemplar Structural diff against IWC rnaseq-de / rnaseq-pe
iwc-exemplar.gxwf.yml compare-against-iwc-exemplar Normalized subgraph of nearest IWC exemplar
galaxy-workflow-draft.gxwf.yml freeform-summary-to-galaxy-template Initial draft with _plan_* context fields
galaxy-workflow.gxwf.yml advance-galaxy-draft-step Final concrete, runnable Galaxy gxformat2 workflow
test-data-refs.json find-test-data Target test data shapes and source references
test-data/ implement-galaxy-workflow-test Staged local test fixtures (FASTQ pairs, FASTA, tables)
galaxy-test-plan.yml freeform-summary-to-galaxy-test-plan Schema-valid intermediate workflow test plan
galaxy-workflow.gxwf-tests.yml implement-galaxy-workflow-test Runnable Planemo workflow test companion
galaxy-workflow-validation-result.json validate-galaxy-workflow Record of terminal gxwf validate run
workflow-debug-report.md debug-galaxy-workflow-output Triage report diagnosing DESeq2 dispersion fitting
workflow-test-result.json run-workflow-test Structured record of final successful test execution
tool_test_output.json / .html planemo test Raw Planemo execution outputs and HTML report
CASE_STUDY.md Case Study Lead Comprehensive narrative and evidence record

5. Live Galaxy Execution via galaxy-skills

Following local test validation, the workflow was deployed and executed live on https://usegalaxy.org using the tooling and patterns from galaxyproject/galaxy-skills (galaxy-integration and galaxy-mcp-reference).

5.1 Initial Subsample Run (Validation)

5.2 Full Raw SRA Production Run