Skip to content

nota-america/forgecat-agent-profiles / profiles/anthropics/knowledge-work-plugins/anthropics_knowledge-work-plugins_bio-research/for-forgecat/skills/nextflow-development

nextflow-development

Unverified

Run nf-core bioinformatics pipelines (rnaseq, sarek, atacseq) on sequencing data. Use when analyzing RNA-seq, WGS/WES, or ATAC-seq data—either local FASTQs or public datasets from GEO/SRA. Triggers on nf-core, Nextflow, FASTQ analysis, variant calling, gene expression, differential expression, GEO reanalysis, GSE/GSM/SRR accessions, or samplesheet creation.

references/pipelines/sarek.md

View on GitHub
# nf-core/sarek

**Version:** 3.7.1

**Official Documentation:** https://nf-co.re/sarek/3.7.1/
**GitHub:** https://github.com/nf-core/sarek

> **Note:** When updating to a new version, check the [releases page](https://github.com/nf-core/sarek/releases) for breaking changes and update the version in commands below.

## Contents
- [Test command](#test-command)
- [Samplesheet format](#samplesheet-format)
- [Variant calling modes](#variant-calling-modes)
- [Parameters](#parameters)
- [Output files](#output-files)

## Test command

```bash
nextflow run nf-core/sarek -r 3.7.1 -profile test,docker --outdir test_sarek
```

Expected: ~20 min, creates aligned BAMs and variant calls.

## Samplesheet format

### From FASTQ
```csv
patient,sample,lane,fastq_1,fastq_2
patient1,tumor,L001,/path/to/tumor_L001_R1.fq.gz,/path/to/tumor_L001_R2.fq.gz
patient1,tumor,L002,/path/to/tumor_L002_R1.fq.gz,/path/to/tumor_L002_R2.fq.gz
patient1,normal,L001,/path/to/normal_R1.fq.gz,/path/to/normal_R2.fq.gz
```

### From BAM/CRAM
```csv
patient,sample,bam,bai
patient1,tumor,/path/to/tumor.bam,/path/to/tumor.bam.bai
patient1,normal,/path/to/normal.bam,/path/to/normal.bam.bai
```

### With tumor/normal status
```csv
patient,sample,lane,fastq_1,fastq_2,status
patient1,tumor,L001,tumor_R1.fq.gz,tumor_R2.fq.gz,1
patient1,normal,L001,normal_R1.fq.gz,normal_R2.fq.gz,0
```

`status`: 0 = normal, 1 = tumor

## Variant calling modes

### Germline (single sample)
```bash
nextflow run nf-core/sarek -r 3.7.1 -profile docker \
    --input samplesheet.csv --outdir results --genome GRCh38 \
    --tools haplotypecaller,snpeff
```

### Somatic (tumor-normal pair)
```bash
nextflow run nf-core/sarek -r 3.7.1 -profile docker \
    --input samplesheet.csv --outdir results --genome GRCh38 \
    --tools mutect2,strelka,snpeff
```

### WES (exome)
```bash
nextflow run nf-core/sarek -r 3.7.1 -profile docker \
    --input samplesheet.csv --outdir results --genome GRCh38 \
    --wes --intervals /path/to/targets.bed \
    --tools haplotypecaller,snpeff
```

### Joint germline (cohort)
```bash
--tools haplotypecaller --joint_germline
```

## Parameters

### Available tools

**Germline callers:**
- `haplotypecaller`: GATK HaplotypeCaller
- `freebayes`: FreeBayes
- `deepvariant`: DeepVariant (GPU optional)
- `strelka`: Strelka2 germline

**Somatic callers:**
- `mutect2`: GATK Mutect2
- `strelka`: Strelka2 somatic
- `manta`: Structural variants

**CNV callers:**
- `ascat`: Copy number
- `controlfreec`: CNV detection
- `tiddit`: SV calling

**Annotation:**
- `snpeff`: Functional annotation
- `vep`: Variant Effect Predictor

### Key parameters

| Parameter | Default | Description |
|-----------|---------|-------------|
| `--tools` | - | Comma-separated list of tools |
| `--genome` | - | `GRCh38`, `GRCh37` |
| `--wes` | false | Exome mode (requires `--intervals`) |
| `--intervals` | - | BED file for targeted regions |
| `--joint_germline` | false | Joint calling for cohorts |
| `--skip_bqsr` | false | Skip base quality recalibration |

## Output files

```
results/
├── preprocessing/
│   └── recalibrated/           # Analysis-ready BAMs
│       └── *.recal.bam
├── variant_calling/
│   ├── haplotypecaller/        # Germline VCFs
│   ├── mutect2/                # Somatic VCFs (filtered)
│   └── strelka/
├── annotation/
│   └── snpeff/                 # Annotated VCFs
└── multiqc/
```

## Troubleshooting

**BQSR fails**: Check known sites available for genome. Skip with `--skip_bqsr` for non-standard references.

**Mutect2 no variants**: Verify tumor/normal pairing in samplesheet (check `status` column).

**Out of memory**: `--max_memory '128.GB'` for WGS.

**DeepVariant GPU**: Ensure NVIDIA Docker runtime configured.

## More Information

- **Full parameter list:** https://nf-co.re/sarek/3.7.1/parameters/
- **Output documentation:** https://nf-co.re/sarek/3.7.1/docs/output/
- **Usage documentation:** https://nf-co.re/sarek/3.7.1/docs/usage/
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall