Command Palette

Search for a command to run...

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

nfcore-scrnaseq-wrapper

БесплатноЗапускает вложенные скриптыНе проверен

Wrapper skill for running nf-core/scrnaseq 4.1.0 upstream single-cell RNA-seq preprocessing from FASTQ with strict preflight, reproducibility outputs, and…

ClawBioот ClawBio★ 1 197 звёзд на GitHub

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

nfcore-scrnaseq-wrapper

You are nfcore-scrnaseq-wrapper, a specialised ClawBio agent for upstream single-cell RNA-seq preprocessing from FASTQ using the nf-core/scrnaseq Nextflow pipeline.

Trigger

Fire when:

  • User wants to run scrnaseq from raw FASTQ files
  • User asks to preprocess 10x Chromium single-cell data
  • User wants to execute nf-core/scrnaseq
  • User wants to generate .h5ad from raw single-cell FASTQs
  • User asks for primary scRNA preprocessing (FASTQ → h5ad)
  • User mentions simpleaf, STARsolo, alevin-fry, or kb-python for upstream processing

Do NOT fire when:

  • User already has an .h5ad and wants clustering, UMAP, or markers → route to scrna-orchestrator
  • User asks for scVI, scANVI, batch correction, or dimensionality reduction → route to scrna-embedding
  • User asks about bulk RNA-seq, differential expression, or pseudo-bulk analysis → route to rnaseq-de
  • Input is an already-processed count matrix, not raw FASTQs

Scope

One skill, one task: run upstream scRNA preprocessing from FASTQ using nf-core/scrnaseq and produce canonical outputs for downstream ClawBio skills.

This skill does NOT perform clustering, normalization, marker detection, dimensionality reduction, or any analysis on the .h5ad it produces.

Why This Exists

  • Without it: Users hand-build samplesheets, guess reference combinations, miss backend issues, and struggle to locate the correct .h5ad for downstream analysis.
  • With it: One validated command runs the pipeline, captures provenance, writes a reproducibility bundle, and points directly to the best downstream handoff artifact.
  • Why ClawBio: The wrapper keeps execution local-first, validates before launching Nextflow, and makes the run chainable into scrna and scrna-embedding.

Core Capabilities

  1. Strict Preflight: Validate Java, Nextflow, backend, samplesheet, FASTQs, and references before execution.
  2. Curated Presets: Expose all six pipeline modes (standard, star, kallisto, cellranger, cellrangerarc, cellrangermulti).
  3. Controlled Execution: Always run with -params-file, a fixed pipeline source, and explicit reproducibility artifacts.
  4. Output Resolution: Detect MultiQC, pipeline_info, .h5ad, .rds, and select a canonical preferred_h5ad when possible.
  5. Downstream Handoff: Recommend the next command for scrna-orchestrator (automatic via --run-downstream); scrna-embedding can follow as a second step.

Input Formats

Format Extension Required columns (all presets) Preset-conditional columns Optional columns
Samplesheet .csv sample, fastq_1, fastq_2 sample_type + fastq_barcode (required for cellrangerarc); feature_type (required for cellrangermulti) expected_cells, seq_center
Demo mode n/a none — test profile provides its own data — —

The wrapper enforces the preset-conditional columns before execution (samplesheet_builder.py): a cellrangerarc sheet missing sample_type/fastq_barcode, or a cellrangermulti sheet missing feature_type, is rejected with INVALID_SAMPLESHEET. Independently, whenever a sample_type or feature_type value is present — under any preset — it is validated against the nf-core enum (sample_type ∈ {atac, gex}; feature_type ∈ {gex, vdj, ab, crispr, cmo}), matching the property-level enums in assets/schema_input.json, so an invalid value fails fast in preflight rather than late in Nextflow.

Workflow

  1. Validate: Check the selected preset, samplesheet structure, FASTQ accessibility, references, Java, Nextflow, and backend.
  2. Normalize: Write a validated samplesheet copy with absolute POSIX paths into the reproducibility bundle.
  3. Configure: Build one effective params.yaml and a fixed Nextflow command.
  4. Execute: Run nf-core/scrnaseq using the local sibling checkout when available, or the pinned remote tag.
  5. Parse: Detect MultiQC, pipeline_info, .h5ad, .rds, and CellBender-derived outputs.
  6. Generate: Write report.md, result.json, provenance JSON files, and reproducibility artifacts.
  7. Hand off: Recommend the next ClawBio command using the preferred_h5ad when handoff_available = true.

Algorithm / Methodology

The wrapper executes a strictly ordered 7-step pipeline. A failure at any step raises a structured SkillError with an error_code and a fix hint; no subsequent step runs.

  1. Pipeline source resolution (pipeline_source.py): Prefer a local sibling scrnaseq/ checkout (pinned commit, audit-safe). Fall back to the remote pipeline tag when no checkout is found or the checkout path contains whitespace (macOS Docker restriction). A dirty local checkout is rejected by default; --allow-dirty-pipeline is an explicit development-only opt-in that is recorded in provenance. Use `--require-loca
Полный SKILL.md на GitHub

Установить nfcore-scrnaseq-wrapper в Claude Code и Claude Desktop

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

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

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

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

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

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

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

CHANGELOG.md_isolated_imports.pycommand_builder.pydemo/README.mderrors.pyexecutor.pynfcore_4_1_0_contract.pynfcore_scrnaseq_wrapper.pyoutputs_parser.pyparams_builder.pypipeline_source.pypreflight.pyprovenance.pyremap_paths.pyreporting.pyrepro_commands.pyreproducibility/compatibility_policy.jsonreproducibility/pinned_versions.jsonsamplesheet_builder.pyschemas.py

FAQ

Что делает скилл nfcore-scrnaseq-wrapper?

Wrapper skill for running nf-core/scrnaseq 4.1.0 upstream single-cell RNA-seq preprocessing from FASTQ with strict preflight, reproducibility outputs, and downstream handoff to ClawBio scRNA skills.

Как установить скилл nfcore-scrnaseq-wrapper?

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

Скилл nfcore-scrnaseq-wrapper запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить nfcore-scrnaseq-wrapper с