merge-schemas

Regenerate nextflow.config and nextflow_schema.json for Bactopia workflows.

521|81|Updated Feb 22, 2019
One-click install
npx skills add https://github.com/bactopia/bactopia --skill merge-schemas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge-schemas
Source: https://github.com/bactopia/bactopia/tree/main/.claude/skills/merge-schemas
Command: npx skills add https://github.com/bactopia/bactopia --skill merge-schemas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, conda, bactopia-merge-schemas, python3, and includes scripts (resource) components.

What problem does it solve?

Regenerate nextflow.config and nextflow_schema.json for Bactopia workflows by running bactopia-merge-schemas. Use when asked to merge schemas, regenerate workflow config, rebuild nextflow_schema.json, or sync workflow configs after module schema changes.

Core Features & Use Cases

  • Identify and target workflows via catalog.json using exact names, lists, glob patterns, or broad categories (all tools, all named, or all workflows).
  • Resolve targets to precise output directories and determine workflow type (named or tool) for accurate reports.
  • Validate existing output files, run the merge-schemas operation, and summarize results with per-target status.

Quick Start

Run bactopia-merge-schemas to regenerate schema and config files for the target workflows.

Frequently Asked Questions about merge-schemas

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I regenerate nextflow_schema.json for Bactopia workflows after module schema changes?

To regenerate nextflow_schema.json for Bactopia workflows, run bactopia-merge-schemas to sync workflow configurations. This operation targets workflows via catalog.json and automatically rebuilds both the schema and nextflow.config files.

What is the best way to sync nextflow.config files across multiple Bactopia workflows?

The best way to sync nextflow.config files is by running bactopia-merge-schemas to regenerate schemas for multiple workflows. You can target workflows broadly using categories like all tools, all named, or all workflows discovered via catalog.json.

Can I target specific Bactopia workflows by name or pattern when merging schemas?

Yes, you can target specific Bactopia workflows for schema regeneration using exact names, lists, or glob patterns. The tool resolves these targets via catalog.json to precise output directories and determines the workflow type for accurate reporting.

Do I need conda and python3 to rebuild nextflow schemas for Bactopia?

Yes, you need conda and python3 installed in your environment to rebuild nextflow schemas. The schema regeneration process relies on a wrapper to locate and execute bactopia-merge-schemas, which requires these dependencies to function correctly.

Why does bactopia-merge-schemas check for existing output files before regenerating workflow configs?

Bactopia-merge-schemas checks for existing output files before regenerating workflow configs to validate current states and prevent unnecessary overwrites. This validation step ensures the merge-schemas operation only processes targets requiring updates, summarizing results with per-target status.