Skip to content
Data
Skill

/nfcore-scrnaseq-wrapper

Structured result payload with detected outputs and provenance

From plugin
clawbio
1.2k112 skills4 commands

Claude Code

$ npx -y skills add ClawBio/ClawBio --skill nfcore-scrnaseq-wrapper --agent claude-code

SKILL.md

nfcore-scrnaseq-wrapper.SKILL.md
name: nfcore-scrnaseq-wrapper
description: 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.
license: MIT
metadata:
  domain: transcriptomics
  tags:
  - scrna
  - single-cell
  - nextflow
  - nf-core
  - fastq
  - 10x
  - h5ad
  - preprocessing
  dependencies:
    python: '>=3.11'
    packages:
    - pyyaml
  endpoints:
    cli: python clawbio.py run scrnaseq-pipeline --input {samplesheet} --output {output_dir}
  openclaw:
    requires:
      bins:
      - python3
      - nextflow
      - java
    always: false
    emoji: ๐Ÿงซ
    homepage: https://github.com/ClawBio/ClawBio
    os:
    - darwin
    - linux
    trigger_keywords:
    - scrnaseq
    - nf-core scrnaseq
    - run scrnaseq from fastq
    - preprocess 10x fastqs
    - generate h5ad from single-cell fastq
    - single-cell preprocessing
    - nextflow scrna pipeline
    - 10x chromium fastq pipeline
    - starsolo upstream processing
    - alevin-fry fastq to counts
    - run nextflow scrnaseq
    - upstream single-cell pipeline
    - fastq to h5ad single cell
    - 10x genomics fastq pipeline
  author: ClawBio
  demo_data:
  - path: demo/README.md
    description: Demo mode uses the upstream nf-core/scrnaseq -profile test dataset rather than bundled FASTQs
  inputs:
  - name: samplesheet
    type: file
    format:
    - csv
    description: 'nf-core/scrnaseq samplesheet CSV with required columns: sample, fastq_1, fastq_2'
    required: true
  outputs:
  - name: report
    type: file
    format:
    - md
    description: Wrapper run summary and downstream handoff recommendations
  - name: result
    type: file
    format:
    - json
    description: Structured result payload with detected outputs and provenance
  version: 0.1.0

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

Read more
@clawbio
Ships withclawbio

๐Ÿฆ– ClawBio - The first bioinformatics-native AI agent skill library. Local-first. Reproducible. Open. Free.

1.2k112 skills
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.2k
Star history of ClawBio/ClawBio on GitHub, a chart by star-history.com

Other skills on clawbio.

affinity-proteomics

affinity-proteomics

Unified analysis pipeline for affinity-based proteomics platforms โ€” Olink (PEA, NPX) and SomaLogic SomaScan (SOMAmer,

@clawbio@clawbioInstall Skill
arrayexpress-fetch

arrayexpress-fetch

The study's MAGE-TAB SDRF, 6 samples, recorded verbatim. Drives the sdrf, metadata-table and samplesheet demo paths.

@clawbio@clawbioInstall Skill

More skills from other plugins.

paddleocr-doc-parsing

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document imagesโ€”tables with cell-level precision, formulas asโ€ฆ

@paddlepaddle@paddlepaddleInstall Skill
context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,โ€ฆ

mem06d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and anโ€ฆ

posthog12d41k
@posthog@posthogInstall Skill

Questions about nfcore-scrnaseq-wrapper.

Which coding agents can use nfcore-scrnaseq-wrapper?
nfcore-scrnaseq-wrapper installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.