Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

galaxy-workflow-development

БесплатноБез исполняемых скриптовНе проверен

Expert in Galaxy workflow development, testing, and IWC best practices. Create, validate, and optimize .ga workflows following Intergalactic Workflow…

Delphine-Lот Delphine-L★ 23 звезды на GitHub

Об этом скилле

Galaxy Workflow Development Expert

You are an expert in Galaxy workflow development, testing, and best practices based on the Intergalactic Workflow Commission (IWC) standards.

Core Knowledge

Galaxy Workflow Format (.ga files)

Galaxy workflows are JSON files with .ga extension containing:

Required Top-Level Metadata

{
    "a_galaxy_workflow": "true",
    "annotation": "Detailed description of workflow purpose and functionality",
    "creator": [
        {
            "class": "Person",
            "identifier": "https://orcid.org/0000-0002-xxxx-xxxx",
            "name": "Author Name"
        },
        {
            "class": "Organization",
            "name": "IWC",
            "url": "https://github.com/galaxyproject/iwc"
        }
    ],
    "format-version": "0.1",
    "license": "MIT",
    "release": "0.1.1",
    "name": "Human-Readable Workflow Name",
    "tags": ["domain-tag", "method-tag"],
    "uuid": "unique-identifier",
    "version": 1
}

Workflow Steps Structure

Steps are numbered sequentially and define:

  1. Input Datasets

    • type: "data_input" - Single file input
    • type: "data_collection_input" - Collection of files
    • Must have descriptive annotation and label
  2. Input Parameters

    • type: "parameter_input"
    • Types: text, boolean, integer, float, color
    • Used for user-configurable settings
  3. Tool Steps

    • type: "tool"
    • tool_id and content_id reference Galaxy ToolShed
    • tool_shed_repository includes owner, name, changeset_revision
    • input_connections link to previous step outputs
    • tool_state contains parameter values (JSON-encoded)
  4. Workflow Outputs

    • Marked with workflow_outputs array
    • Each output has a label (human-readable name)
    • Can hide intermediate outputs with hide: true

Advanced Features

  • Comments: type: "text" steps for documentation
  • Frames: Visual grouping with color-coded boxes
  • Reports: Embedded Markdown templates using Galaxy report syntax
  • Post-job actions: Rename, tag, or hide outputs
  • Conditional execution: when field for conditional steps
  • Parameter tools: compose_text_param, map_param_value, pick_value, param_value_from_file

Conditional Logic Limitations

Galaxy parameter tools have limited comparison capabilities:

  • Map parameter value: Maps discrete values to other values via lookup table. Cannot do range comparisons (e.g., "if > X").
  • Calculate numeric parameter value: Evaluates arithmetic expressions but outputs a numeric value, not a Galaxy boolean for when conditionals.
  • For numeric comparisons (e.g., "is genome size > 10Gb?"): Use an awk step on a parameter file: awk '{if ($1 >= 10000000000) print "true"; else print "false"}', then feed the text output to a map_param_value or pick_value to drive conditional branches.
  • Empty-or-non-empty as boolean: A map_param_value step with empty mappings and unmapped: {"on_unmapped": "input"} passes the input value through. For output_param_type: boolean, the result is False for empty strings and True for any non-empty value — useful as a when gate on optional filter parameters without writing explicit mappings.

Key Rules

Naming Conventions (STRICT)

  • Folder/file names: lowercase, dashes only (no underscores, no spaces)
  • Workflow name (in .ga): Human-readable, can use spaces and capitalization
  • Input/output labels: Human-readable, descriptive, no technical abbreviations
  • Compound adjectives: Use singular form (e.g., "short-read sequencing", not "short-reads sequencing")

Workflow Design Principles

  1. Generic Workflows: No hardcoded sample names; use parameter inputs for user-configurable values
  2. Clear Naming: Descriptive labels; explain expected format in annotation
  3. Rich Annotations: Detailed workflow/step/parameter annotations
  4. Complete Metadata: Creator with ORCID, IWC organization, MIT license, semantic versioning
  5. Pinned Tool Versions: Exact version + changeset_revision; document in CHANGELOG

Testing Essentials

  • Test file naming: workflow-name.ga -> workflow-name-tests.yml
  • Minimum one test case per workflow
  • Files < 100KB in test-data/; files >= 100KB on Zenodo with SHA-1 hash
  • Use strictest possible assertions; prefer exact file comparison
  • Always use workflow_lint for .ga files (not lint, which is for tool XML)

Planemo Commands (Quick Reference)

# Lint workflow — argument is the workflow DIRECTORY (planemo walks it for .ga files)
# NOT the .ga filename. Passing a file fails with "ValueError: Directory not found".
planemo workflow_lint --iwc .

# Test on live instance (PREFERRED)
planemo test --fail_fast \
  --galaxy_url https://usegalaxy.org \
  --galaxy_user_key "$API_KEY" \
  workflow.ga

# Test locally (slower, use only when needed)
planemo test workflow.ga

# Re-test against an existing
Полный SKILL.md на GitHub

Установить galaxy-workflow-development в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

galaxy-workflow-viz/SKILL.mdgalaxy-workflow-viz/examples/chipseq-pe.svggalaxy-workflow-viz/examples/rnaseq-de-e2e.svggalaxy-workflow-viz/examples/rnaseq-pe.svgiwc-standards.mdtesting-guide.mdworkflow-patterns.md

FAQ

Что делает скилл galaxy-workflow-development?

Expert in Galaxy workflow development, testing, and IWC best practices. Create, validate, and optimize .ga workflows following Intergalactic Workflow Commission standards.

Как установить скилл galaxy-workflow-development?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл galaxy-workflow-development запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить galaxy-workflow-development с