一键导入
nf-subworkflow-to-galaxy-workflow
Convert a Nextflow subworkflow to a Galaxy workflow
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert a Nextflow subworkflow to a Galaxy workflow
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when authoring a Galaxy User-Defined Tool (UDT) -- a `class: GalaxyUserTool` YAML definition that wraps a container and command into a tool a non-admin user creates and runs (e.g. via Galaxy MCP create_user_tool / run_user_tool, or POST /api/unprivileged_tools). Not for classic XML/ToolShed tool wrappers.
Use this skill when asked to create, draft, or write a Galaxy workflow report template for the Workflow Editor's Report tab. Triggers on requests like "create a report for this workflow", "draft a workflow report template", "write a Galaxy report for workflow <id/url>".
Galaxy Collection Transformation Command - transform Galaxy dataset collections reproducibly using Galaxy's native tools. Use when asked to filter, sort, relabel, restructure, flatten, nest, merge, or otherwise manipulate Galaxy collections.
Galaxy MCP server tools reference for histories, datasets, tools, and workflows
Router for Galaxy MCP, JupyterLite notebooks, and BioBlend automation
Building UCSC Track Hubs (track hubs and assembly hubs) — bigBed/bigChain/bigMaf format requirements, composite-track rules, hub.txt / genomes.txt / trackDb.txt structure. Use when emitting a UCSC hub from Galaxy outputs, wrapping a hub-publishing tool, or debugging hubCheck failures.
| name | nf-subworkflow-to-galaxy-workflow |
| description | Convert a Nextflow subworkflow to a Galaxy workflow |
Use this skill when:
Don't use this skill if:
nf-process-to-galaxy-tool instead)nf-pipeline-to-galaxy-workflow instead)List all processes that are part of the subworkflow.
Example (CAPHEINE preprocessing):
PROCESS_VIRAL_NONRECOMBINANT subworkflow:
1. REMOVETERMINALSTOPCODON
2. SEQKIT_SPLIT
3. CAWLIGN
4. REMOVEAMBIGSEQS
5. HYPHY_CLN
6. IQTREE
7. HYPHY_LABELTREE
Use: ../check-tool-availability.md and ../scripts/check_tool.sh
cd ../
for tool in removeterminalstopcodon seqkit cawlign hyphy iqtree; do
./scripts/check_tool.sh $tool
done
Document results:
Process: REMOVETERMINALSTOPCODON
Tool: remove_terminal_stop_codons
Status: ✅ Found in tools-iuc
Action: Use existing tool
Process: SEQKIT_SPLIT
Tool: seqkit_split2
Status: ✅ Found in tools-iuc
Action: Use existing tool
Process: CUSTOM_PROCESS
Tool: custom_tool
Status: ❌ Not found
Action: Need to create tool → Use nf-process-to-galaxy-tool skill
If any tools are missing:
For each missing tool, use the nf-process-to-galaxy-tool skill to create it.
Wait for all tools to exist before continuing to Step 4.
Identify how data flows between processes in Nextflow:
// Nextflow example
PROCESS_A(input_ch)
PROCESS_B(PROCESS_A.out.result)
PROCESS_C(PROCESS_B.out.result)
Maps to Galaxy workflow:
Step 0: Input dataset
Step 1: Tool A (input from Step 0)
Step 2: Tool B (input from Step 1 output)
Step 3: Tool C (input from Step 2 output)
See: ../workflow-to-ga.md for detailed data flow mapping
Parallelization (Nextflow channels splitting):
Conditionals (Nextflow when clauses):
Optional inputs:
See: ../workflow-to-ga.md for pattern details
Recommended approach: Use Galaxy UI
.ga fileAlternative: Programmatically create .ga JSON
See: ../workflow-to-ga.md for .ga format details
Use the canonical testing docs:
../../tool-dev/references/testing.md../../galaxy-integration/galaxy-integration.md../testing-and-validation.md is a short routing page that links to these.
Nextflow subworkflow = Galaxy workflow (.ga file)
Key mappings:
All detailed guides are in parent directory (../):
workflow-to-ga.md - Complete workflow conversion guidecheck-tool-availability.md - Tool availability checkingnextflow-galaxy-terminology.md - Conceptual mappingstesting-and-validation.md - Routing page to canonical testing docsRelated skills:
nf-process-to-galaxy-tool - For creating missing toolsSee ../examples/capheine-mapping.md for the PROCESS_VIRAL_NONRECOMBINANT subworkflow conversion example.
Key insight: In CAPHEINE, all tools already existed in tools-iuc, so conversion was purely workflow assembly - no tool creation needed.