wf2wf DocumentationΒΆ
Welcome to wf2wf β the universal workflow-format converter.
Docs in progress
This documentation site is still growing. If something is missing, please open an issue or contribute a pull request!
Overview πΒΆ
wf2wf converts workflows between any supported engines via a loss-preserving Intermediate Representation (IR). Supported today:
β’ Snakemake β’ CWL β’ Nextflow β’ WDL β’ Galaxy β’ HTCondor DAGMan (+ BioCompute Objects)
Key features:
π Universal conversion β always A β IR β B for maximum fidelity.
π§ Intelligent inference β automatically fills in missing resource specifications and configurations.
π¬ Interactive prompting β guided assistance for complex conversions and missing information.
𧬠Loss mapping β records unexpressed fields in side-cars so nothing vanishes.
π³ Environment automation β Conda β OCI β Apptainer with SBOM generation.
β Regulatory support β Emits BioCompute Objects and provenance metadata.
Quick installΒΆ
pip install wf2wf # or: conda install -c conda-forge wf2wf
Quick CLI tour πΒΆ
# Convert Snakemake β DAGMan and build container images
wf2wf convert -i Snakefile -o pipeline.dag --auto-env build --interactive
# Convert CWL β Nextflow, aborting on information loss
wf2wf convert -i analysis.cwl -o main.nf --out-format nextflow --fail-on-loss
# Enhanced conversion with interactive resource specification
wf2wf convert -i Snakefile -o pipeline.dag --interactive --infer-resources
# Convert CWL β Nextflow with resource validation and loss detection
wf2wf convert -i analysis.cwl -o main.nf --out-format nextflow --fail-on-loss --validate-resources
# Comprehensive conversion with all enhanced features
wf2wf convert -i workflow.smk -o workflow.dag \
--interactive \
--infer-resources \
--validate-resources \
--resource-profile cluster \
--target-env distributed \
--report-md
Enhanced Features πΒΆ
Intelligent Resource InferenceΒΆ
Automatically detect and specify resource requirements based on command analysis:
wf2wf convert -i workflow.smk -o workflow.dag --infer-resources
# Analyzes: "bwa mem" β 8GB memory, 4 CPU
# Analyzes: "samtools sort" β 4GB memory, 2 CPU
Interactive Conversion ModeΒΆ
Get guided assistance for complex conversions:
wf2wf convert -i workflow.smk -o workflow.dag --interactive
# Prompts for: missing resources, containers, error handling, file transfers
Resource ProcessingΒΆ
Validate and optimize resource specifications:
wf2wf convert -i workflow.smk -o workflow.dag --validate-resources --resource-profile cluster
SectionsΒΆ
User Guide β step-by-step tutorials and best practices.
Shared Infrastructure β comprehensive guide to intelligent inference and interactive features.
CLI Reference β exhaustive help for every command.
Developer Guide β IR schema, environment pipeline, contributor tips.
Changelog β project history and release notes.