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/rnaseq.md

View on GitHub
# nf-core/rnaseq

**Version:** 3.22.2

**Official Documentation:** https://nf-co.re/rnaseq/3.22.2/
**GitHub:** https://github.com/nf-core/rnaseq

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

## Contents
- [Test command](#test-command)
- [Samplesheet format](#samplesheet-format)
- [Parameters](#parameters)
- [Output files](#output-files)
- [Downstream analysis](#downstream-analysis)

## Test command

```bash
nextflow run nf-core/rnaseq -r 3.22.2 -profile test,docker --outdir test_rnaseq
```

Expected: ~15 min, creates `multiqc/multiqc_report.html`.

## Samplesheet format

```csv
sample,fastq_1,fastq_2,strandedness
CONTROL_REP1,/path/to/ctrl1_R1.fq.gz,/path/to/ctrl1_R2.fq.gz,auto
CONTROL_REP2,/path/to/ctrl2_R1.fq.gz,/path/to/ctrl2_R2.fq.gz,auto
TREATMENT_REP1,/path/to/treat1_R1.fq.gz,/path/to/treat1_R2.fq.gz,auto
```

| Column | Required | Values |
|--------|----------|--------|
| sample | Yes | Alphanumeric, underscores allowed |
| fastq_1 | Yes | Absolute path to R1 |
| fastq_2 | No | Absolute path to R2 (empty for single-end) |
| strandedness | Yes | `auto`, `forward`, `reverse`, `unstranded` |

**Strandedness guide:**
- `auto`: Inferred from data (recommended)
- `forward`: TruSeq Stranded, dUTP protocols
- `reverse`: Ligation-based protocols
- `unstranded`: Non-stranded protocols

## Parameters

### Minimal run
```bash
nextflow run nf-core/rnaseq -r 3.22.2 -profile docker \
    --input samplesheet.csv --outdir results --genome GRCh38
```

### Common parameters

| Parameter | Default | Description |
|-----------|---------|-------------|
| `--aligner` | `star_salmon` | Options: `star_salmon`, `star_rsem`, `hisat2` |
| `--genome` | - | `GRCh38`, `GRCh37`, `mm10`, `BDGP6` |
| `--pseudo_aligner` | - | Set to `salmon` for pseudo-alignment only |
| `--skip_trimming` | false | Skip adapter trimming |
| `--skip_alignment` | false | Pseudo-alignment only |

### Custom reference
```bash
--fasta /path/to/genome.fa \
--gtf /path/to/annotation.gtf \
--star_index /path/to/star/  # Optional, builds if absent
```

## Output files

```
results/
├── star_salmon/
│   ├── salmon.merged.gene_counts.tsv    # Raw counts for DESeq2
│   ├── salmon.merged.gene_tpm.tsv       # TPM values
│   └── *.bam                            # Alignments
├── multiqc/
│   └── multiqc_report.html              # QC summary
└── pipeline_info/
```

**Key outputs:**
- `salmon.merged.gene_counts.tsv`: Input for DESeq2/edgeR
- `salmon.merged.gene_tpm.tsv`: Normalized expression

## Downstream analysis

```r
library(DESeq2)
counts <- read.delim("salmon.merged.gene_counts.tsv", row.names=1)
coldata <- data.frame(
    condition = factor(c("control", "control", "treatment", "treatment"))
)
dds <- DESeqDataSetFromMatrix(
    countData = round(counts),
    colData = coldata,
    design = ~ condition
)
dds <- DESeq(dds)
res <- results(dds, contrast = c("condition", "treatment", "control"))
```

## Troubleshooting

**STAR index fails**: Increase memory with `--max_memory '64.GB'` or provide pre-built `--star_index`.

**Low alignment rate**: Verify genome matches species; check FastQC for adapter contamination.

**Strandedness detection fails**: Specify explicitly with `--strandedness reverse`.

## More Information

- **Full parameter list:** https://nf-co.re/rnaseq/3.22.2/parameters/
- **Output documentation:** https://nf-co.re/rnaseq/3.22.2/docs/output/
- **Usage documentation:** https://nf-co.re/rnaseq/3.22.2/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