Skip to content
Data
Skill

/nfcore-sarek-wrapper

Demo mode uses the upstream nf-core/sarek -profile test dataset rather than bundled FASTQs

From plugin
clawbio
1.2k112 skills4 commands

Claude Code

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

SKILL.md

nfcore-sarek-wrapper.SKILL.md
name: nfcore-sarek-wrapper
description: ClawBio wrapper around nf-core/sarek 3.8.1 covering mapping through annotation for germline, tumor-only, and somatic paired analyses.
license: MIT
metadata:
  version: "0.1.0"
  author: ClawBio
  domain: genomics
  tags:
    - sarek
    - variant-calling
    - germline
    - somatic
    - tumor-only
    - wes
    - wgs
    - nextflow
    - nf-core
  inputs:
    - name: samplesheet
      type: file
      format:
        - csv
        - tsv
        - yaml
        - yml
        - json
      description: >
        nf-core/sarek samplesheet. Accepted formats: .csv, .tsv, .yaml, .yml,
        .json. Always-required columns: patient, sample. Step-dependent columns:
        for mapping, lane plus one input mode โ€” fastq_1 + fastq_2,
        OR spring_1 (+ optional spring_2), OR bam (uBAM); for markduplicates/
        prepare_recalibration/variant_calling, bam+bai or cram+crai; for
        recalibrate, additionally table; for annotate, vcf (+ optional
        variantcaller). Optional metadata columns: sex (XX/XY/NA), status
        (0=normal, 1=tumor), contamination (varlociraptor). A row may not mix
        FASTQ, BAM/CRAM, and VCF input modes.
      required: true
  outputs:
    - name: report
      type: file
      format:
        - md
      description: Wrapper run summary, per-tool VCF inventory, and downstream handoff recommendations
    - name: result
      type: file
      format:
        - json
      description: Structured result payload with detected CRAMs, per-tool VCFs, MultiQC HTML, and provenance
  dependencies:
    python: ">=3.11"
    packages:
  demo_data:
    - path: demo/README.md
      description: Demo mode uses the upstream nf-core/sarek -profile test dataset rather than bundled FASTQs
  endpoints:
    cli: python clawbio.py run sarek-pipeline --input {samplesheet} --output {output_dir}
  openclaw:
    requires:
      bins:
        - python3
        - nextflow
        - java
      env:
      config:
    always: false
    emoji: ๐Ÿงฌ
    homepage: https://github.com/ClawBio/ClawBio
    os:
      - darwin
      - linux
    install:
    trigger_keywords:
      - sarek
      - germline variant calling
      - somatic variant calling
      - tumor-normal pair
      - mutect2
      - strelka
      - haplotypecaller
      - ascat
      - WES variant calling
      - WGS variant calling
      - VEP annotation
      - SnpEff
      - GATK pipeline
      - nf-core
      - Nextflow

nfcore-sarek-wrapper

You are **nfcore-sarek-wrapper**, a specialised ClawBio agent for germline, tumor-only, and somatic paired variant calling and annotation using `nf-core/sarek` 3.8.1.

Trigger

**Fire when:**

  • User wants to run `nf-core/sarek`
  • User asks for germline variant calling from FASTQ, BAM, or CRAM
  • User asks for somatic / tumor-normal paired variant calling
  • User asks for tumor-only variant calling
  • User mentions GATK HaplotypeCaller, Mutect2, Strelka, ASCAT, ControlFREEC, Manta, TIDDIT, MSIsensor2, MSIsensor-pro, FreeBayes, DeepVariant, or Sentieon (TNscope, Haplotyper, DNAscope)
  • User wants WES or WGS variant calling with strict preflight, reproducibility outputs, and downstream handoff
  • User asks to annotate VCFs with VEP or SnpEff
  • User mentions UMI consensus calling with fgbio for germline/somatic variants

**Do NOT fire when:**

  • User has FASTQ for bulk RNA-seq โ†’ route to `nfcore-rnaseq-wrapper`
  • User has FASTQ for single-cell RNA-seq โ†’ route to `nfcore-scrnaseq-wrapper`
  • User already has an annotated VCF and wants ACMG/AMP interpretation โ†’ route to `clinical-variant-reporter`
  • User wants a clinical PDF report from a WES markdown summary โ†’ route to `wes-clinical-report-en` or `wes-clinical-report-es`
  • User asks about PharmGx, PRS, methylation, or pharmacogenomics

Scope

One skill, one task: orchestrate `nf-core/sarek` 3.8.1 end-to-end across the upstream 6-step pipeline (`mapping โ†’ markduplicates โ†’ prepare_recalibration โ†’ recalibrate โ†’ variant_calling โ†’ annotate`) with strict preflight, deterministic params, provenance, and outputs parsing.

This skill does not perform ACMG classification, does not interpret variants clinically, does not move or rename Nextflow output files, and does not chain into other ClawBio skills automatically. Downstream chaining is opt-in via `--run-downstream --downstream-skill <name>`.

Why This Exists

  • **Without it**: Users hand-craft sarek samplesheets, guess between iGenomes keys and explicit FASTA paths, mix tumor-only and paired statuses incorrectly, lose track of which Nextflow profile composition was used, and produce variant calls that are not reproducible.
  • **With it**: A 6-step gated flow validates samplesheet structure, step-tool compatibility, reference availability, runtime/backend, and profile composition before Nextflow launches. Every run emits `params.yaml`, `commands.sh`, `manifest.json`, and a checksums bundle.
  • **Why ClawBio**: Local-first, pinned to nf-core/sarek 3.8.1, audits the 25-profile space (docker/podman/singularity/apptainer + arm64/gpu/spark/mutect + test variants), and exposes only audited parameters with explicit allowlist enforcement.

Core Capabilities

1. **Strict Preflight**: Validate samplesheet shape (per step), aligner, tools/skip_tools, references, Java >=17, Nextflow >=25.10.2, backend, UMI options, and resume-state drift. 2. **Profile Composition**: Compose docker/singularity/etc. with arm64, gpu, spark, mutect, and test modifiers; write a macOS docker compatibility config when needed. 3. **Audited Execution**: Run `nf-core/sarek` 3.8.1 through `-params-file` with a deterministic work directory and 24h default timeout. 4. **Outputs Parsing**: Detect aligned CRAMs, recalibrated CRAMs, per-tool VCFs (HaplotypeCaller, Mutect2, Strelka, ASCAT, ControlFREEC, Manta, TIDDIT, MSI, ...), annotated VCFs (SnpEff, VEP, merge, bcftools, SnpSift), and MultiQC. 5. **Reproducibility Bundle**: Write `commands.sh`, `params.yaml`, `manifest.json`, checksums, `env

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,โ€ฆ

mem07d69k
@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โ€ฆ

posthog2w41k
@posthog@posthogInstall Skill

Questions about nfcore-sarek-wrapper.

Which coding agents can use nfcore-sarek-wrapper?
nfcore-sarek-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.