ngs-analysis-router — скилл для Codex: NGS-маршрутизация
Скилл определяет тип NGS-данных и направляет запрос к подходящему публичному пайплайну. Он пригодится для BCL, FASTQ, BAM/CRAM, матриц и VCF.
npx skills add openai/plugins --skill ngs-analysis-router -a codexЧто делает ngs-analysis-router
Скилл проверяет доступные файлы и различает BCL, FASTQ, BAM/CRAM, VCF и матрицы счётов. Затем он выбирает один из специализированных скиллов для вариантов, RNA-seq, single-cell, эпигеномики, ампликонов или метагеномики. Если данных мало, он задаёт только вопросы, нужные для маршрута: тип анализа, организм, референс, режим чтения и требуемый результат.
Внутри есть схемы приёма и реестр пайплайнов, а также скрипты ngs_preflight.py и ngs_reference_manager.py. Перед установкой или запуском скилл формирует план проверки окружения, а для тяжёлых по референсам задач — план ресурсов. Команды установки остаются на проверку, пока пользователь явно не разрешит выполнение.
Для human data перед облачным маршрутом нужно подтвердить, разрешена ли загрузка данных. Также скилл учитывает локальный компьютер, HPC или cloud, контейнеры, возможность установки пакетов и границы лицензий.
Какие задачи решает
- определить пайплайн по типу NGS-файлов
- собрать список недостающих параметров анализа
- проверить окружение перед установкой инструментов
- спланировать референсы и базы для пайплайна
- разделить локальный и облачный сценарий работы
Примеры запросов агенту
- Определи, какой NGS-пайплайн нужен для
sample_R1.fastq.gzиsample_R2.fastq.gz, и задай только обязательные вопросы. - Разбери папку с
RunInfo.xml,SampleSheet.csvиData/Intensities/BaseCalls, затем подготовь план маршрутизации. - Проверь окружение для анализа
counts.h5adи покажи следующий шаг до установки.
Как установить ngs-analysis-router
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill ngs-analysis-router -a codex2Вручную: положить файлы
.agents/skills/ngs-analysis-router/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill ngs-analysis-router -a claude-code2Вручную: положить файлы
~/.claude/skills/ngs-analysis-router/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ngs-analysis-router/
Вручную: положить файлы
.cursor/skills/ngs-analysis-router/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openai/plugins ngs-analysis-router2Вручную: положить файлы
.github/skills/ngs-analysis-router/SKILL.mdКомандой платформы
gemini skills install https://github.com/openai/plugins --path plugins/ngs-analysis/skills/ngs-analysis-routerВручную: положить файлы
.devin/skills/ngs-analysis-router/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Скиллы Codex: как установить, где лежат и как вызвать
Вопросы о ngs-analysis-router
Как установить ngs-analysis-router в Codex?
Выполните npx skills add openai/plugins --skill ngs-analysis-router, затем npx skills add openai/plugins --skill ngs-analysis-router -a codex. После установки файл будет доступен по пути .agents/skills/ngs-analysis-router/SKILL.md.
Что делает ngs-analysis-router?
Он определяет тип входных NGS-данных, выбирает подходящий публичный скилл и собирает минимальный набор вопросов для запуска анализа. Перед выполнением он помогает проверить окружение и ресурсы.
Что нужно проверить для human data?
До предложения BaseSpace, Terra, DNAnexus или другого облачного пути нужно выяснить, разрешена ли загрузка human data в cloud. Для локального или HPC-сценария также проверяются контейнеры и возможность установки.
Исходный текст
SKILL.md · MIT
--- name: ngs-analysis-router description: 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. --- # 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: - Illumina run-folder files: `RunInfo.xml`, `RunParameters.xml`, `SampleSheet.csv`, `Data/Intensities/BaseCalls` - FASTQs: `*.fastq`, `*.fq`, `*.fastq.gz`, `*.fq.gz` - BAM/CRAM/VCF: `*.bam`, `*.cram`, `*.vcf`, `*.vcf.gz` - count matrices: `matrix.mtx`, `features.tsv`, `barcodes.tsv`, `*.h5`, `*.h5ad`, `*.rds` - metadata: sample sheets, design files, target BEDs, reference FASTA/GTF, primer files 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: - input type - assay type - desired output - organism/reference - paired-end vs single-end when FASTQs are involved - any assay-specific design file or metadata required for the requested result - runtime constraints: local/HPC/cloud, container availability, and whether installs are allowed For human data, ask whether cloud upload is allowed before suggesting BaseSpace, Terra, DNAnexus, or any cloud path. ## Routing Route to one leaf skill: - BCL run folder or demultiplexing: `ngs-bcl-to-fastq` - QC/trimming only: `ngs-fastq-qc` - WGS/WES/panel variants: `ngs-dna-variant-calling`, then a subtype skill when the analysis model is clear - germline WGS/WES/panel variants: `ngs-dna-germline-variants` - tumor-normal or tumor-only somatic variants: `ngs-dna-somatic-variants` - UMI, duplex, or low-frequency targeted panels: `ngs-dna-umi-panel-variants` - bulk RNA-seq kickoff: `ngs-bulk-rnaseq` - bulk RNA-seq FASTQ-to-count QC: `ngs-bulk-rnaseq-counts-qc` - bulk RNA-seq differential expression from counts: `ngs-bulk-rnaseq-differential-expression` - single-cell or single-nucleus FASTQ-to-matrix kickoff: `ngs-scrna-seq` - single-cell or single-nucleus post-count QC/annotation/UMAP: `scrna-seq-qc` - epigenomics kickoff: `ngs-epigenomics-peaks` - ATAC-seq QC/peaks/accessibility: `ngs-atacseq-peaks-qc` - ChIP-seq, CUT&RUN, or CUT&Tag QC/peaks: `ngs-chip-cutrun-peaks-qc` - 16S/18S/ITS/COI amplicons: `ngs-amplicon-microbiome` - shotgun metagenomics: `ngs-shotgun-metagenomics` - runtime/package setup only: `ngs-runtime-env` 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: ```bash 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: ```bash 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: ```bash 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
© OpenAI · MIT · openai/plugins