Ngs analysis router

From openai/plugins · View interactive version

Ngs analysis router is an AI agent skill from the GitHub repository openai/plugins. Route BCL, FASTQ, BAM/CRAM, count-matrix, or VCF sequencing requests to the right public NGS analysis skill and ask only the missing assay-specific setup questions.

How to use this skill

Skill file

Life Sciences NGS Analysis Router

Use this skill as the top-level entrypoint for ambiguous or broad sequencing-analysis requests.

Start Here

Inspect the available inputs before asking the user questions. Look for:

Read references/intake-schema.json and references/pipeline-registry.json when forming the route.

Intake Rules

Ask the smallest set of missing questions needed to choose a defensible pipeline. Do not ask the full questionnaire if file inspection already answers a field.

Always resolve:

For human data, ask whether cloud upload is allowed before suggesting BaseSpace, Terra, DNAnexus, or any cloud path.

Routing

Route to one leaf skill:

Prefer public, runtime-installable packages and nf-core workflows. Surface license/EULA/account boundaries before using proprietary or cloud tools.

Preflight

Before proposing installation or execution, run a preflight plan from the repo root:

python plugins/ngs-analysis/scripts/ngs_preflight.py --pipeline <pipeline_key> --emit-install-plan

When the user needs an approval-ready install handoff, write persistent install artifacts:

python plugins/ngs-analysis/scripts/ngs_preflight.py --pipeline <pipeline_key> --manager micromamba --install-plan-outdir runtime_readiness/<pipeline_key>_install

Treat install_plan.json as the canonical review artifact. install_commands.sh is generated from the same plan and stays review-only unless the user explicitly approves execution with NGS_RUN_INSTALL_COMMANDS=1.

For reference- or database-heavy pipelines, also create a resource plan before saying the workflow is runnable:

python plugins/ngs-analysis/scripts/ngs_reference_manager.py plan --pipeline <pipeline_key> --genome-build <build> --outdir resource_readiness/<pipeline_key>

Use --include-optional for shotgun, amplicon, or motif-enabled epigenomics runs when optional databases materially affect the requested output.

Use --network-checks only when the user allows network checks. Use --install-missing --yes only when the user explicitly asks to install.

Output Contract

Return:

  1. the routed analysis type and confidence
  2. missing essential parameters, if any
  3. recommended public pipeline or package family
  4. local tool preflight summary
  5. preflight-first command or next concrete action
  6. caveats around licenses, cloud upload, database size, and reference data
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.