Nextflow Development
AnthropicOfficialPublished by Anthropic
- Skill
- Workflow
- Science and research
- Apache-2.0
- Medium risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured workflow for researchers to execute nf-core bioinformatics pipelines. It guides users through environment validation, data acquisition from public repositories like GEO/SRA or local sources, samplesheet generation, and pipeline execution. It supports standard omics analyses including gene expression, variant calling, and chromatin accessibility, while ensuring the computing environment is correctly configured with Docker and Nextflow.
What it does
- Validates system requirements including Docker, Nextflow, and Java versions.
- Fetches and prepares public sequencing data from GEO/SRA accessions.
- Automates the creation and validation of pipeline-specific samplesheets.
- Executes nf-core pipelines for RNA-seq, Sarek, and ATAC-seq workflows.
- Manages reference genome downloads and configuration.
- Verifies analysis outputs and pipeline completion logs.
When to use it
- When you need to perform large-scale omics analysis on local FASTQ files.
- When reanalyzing public datasets from GEO/SRA.
- When you require a standardized, reproducible pipeline for RNA-seq, WGS/WES, or ATAC-seq.
- When setting up a new bioinformatics environment for nf-core pipeline execution.
Advantages
- Standardizes bioinformatics workflows for non-specialists.
- Reduces manual errors in samplesheet creation and environment setup.
- Provides clear decision points for pipeline selection and configuration.
- Includes built-in validation steps to ensure pipeline success.
- Simplifies the integration of public data into local analysis pipelines.
Usage examples
- “Run the rnaseq pipeline on my local FASTQ files.”
- The agent will check your environment, help you generate a samplesheet, confirm the genome, and execute the nf-core/rnaseq pipeline.
- “Analyze the public dataset GSE110004.”
- The agent will fetch the study metadata, download the relevant FASTQ files, create the necessary samplesheet, and prepare the pipeline for execution.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/anthropics/nextflow-development/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip nextflow-development.zip -d .agents/skills
Documentation by Anthropic
nf-core Pipeline Deployment
Run nf-core bioinformatics pipelines on local or public sequencing data.
Target users: Bench scientists and researchers without specialized bioinformatics training who need to run large-scale omics analyses—differential expression, variant calling, or chromatin accessibility analysis.
Workflow Checklist
- [ ] Step 0: Acquire data (if from GEO/SRA)
- [ ] Step 1: Environment check (MUST pass)
- [ ] Step 2: Select pipeline (confirm with user)
- [ ] Step 3: Run test profile (MUST pass)
- [ ] Step 4: Create samplesheet
- [ ] Step 5: Configure & run (confirm genome with user)
- [ ] Step 6: Verify outputsStep 0: Acquire Data (GEO/SRA Only)
Skip this step if user has local FASTQ files.
For public datasets, fetch from GEO/SRA first. See references/geo-sra-acquisition.md for the full workflow.
Quick start:
# 1. Get study info
python scripts/sra_geo_fetch.py info GSE110004
# 2. Download (interactive mode)
python scripts/sra_geo_fetch.py download GSE110004 -o ./fastq -i
# 3. Generate samplesheet
python scripts/sra_geo_fetch.py samplesheet GSE110004 --fastq-dir ./fastq -o samplesheet.csvDECISION POINT: After fetching study info, confirm with user:
Which sample subset to download (if multiple data types)
Suggested genome and pipeline
Then continue to Step 1.
Step 1: Environment Check
Run first. Pipeline will fail without passing environment.
python scripts/check_environment.pyAll critical checks must pass. If any fail, provide fix instructions:
Docker issues
| Problem | Fix |
|---|---|
| Not installed | Install from https://docs.docker.com/get-docker/ |
| Permission denied | sudo usermod -aG docker $USER then re-login |
| Daemon not running | sudo systemctl start docker |
Nextflow issues
| Problem | Fix |
|---|---|
| Not installed | curl -s https://get.nextflow.io | bash && mv nextflow ~/bin/ |
| Version < 23.04 | nextflow self-update |
Java issues
| Problem | Fix |
|---|---|
| Not installed / < 11 | sudo apt install openjdk-11-jdk |
Do not proceed until all checks pass. For HPC/Singularity, see references/troubleshooting.md.
Step 2: Select Pipeline
DECISION POINT: Confirm with user before proceeding.
| Data Type | Pipeline | Version | Goal |
|---|---|---|---|
| RNA-seq | rnaseq | 3.22.2 | Gene expression |
| WGS/WES | sarek | 3.7.1 | Variant calling |
| ATAC-seq | atacseq | 2.1.2 | Chromatin accessibility |
Auto-detect from data:
python scripts/detect_data_type.py /path/to/dataFor pipeline-specific details:
Step 3: Run Test Profile
Validates environment with small data. MUST pass before real data.
nextflow run nf-core/<pipeline> -r <version> -profile test,docker --outdir test_output| Pipeline | Command |
|---|---|
| rnaseq | nextflow run nf-core/rnaseq -r 3.22.2 -profile test,docker --outdir test_rnaseq |
| sarek | nextflow run nf-core/sarek -r 3.7.1 -profile test,docker --outdir test_sarek |
| atacseq | nextflow run nf-core/atacseq -r 2.1.2 -profile test,docker --outdir test_atacseq |
Verify:
ls test_output/multiqc/multiqc_report.html
grep "Pipeline completed successfully" .nextflow.logIf test fails, see references/troubleshooting.md.
Step 4: Create Samplesheet
Generate automatically
python scripts/generate_samplesheet.py /path/to/data <pipeline> -o samplesheet.csvThe script:
Discovers FASTQ/BAM/CRAM files
Pairs R1/R2 reads
Infers sample metadata
Validates before writing
For sarek: Script prompts for tumor/normal status if not auto-detected.
Validate existing samplesheet
python scripts/generate_samplesheet.py --validate samplesheet.csv <pipeline>Samplesheet formats
rnaseq:
sample,fastq_1,fastq_2,strandedness
SAMPLE1,/abs/path/R1.fq.gz,/abs/path/R2.fq.gz,autosarek:
patient,sample,lane,fastq_1,fastq_2,status
patient1,tumor,L001,/abs/path/tumor_R1.fq.gz,/abs/path/tumor_R2.fq.gz,1
patient1,normal,L001,/abs/path/normal_R1.fq.gz,/abs/path/normal_R2.fq.gz,0atacseq:
sample,fastq_1,fastq_2,replicate
CONTROL,/abs/path/ctrl_R1.fq.gz,/abs/path/ctrl_R2.fq.gz,1Step 5: Configure & Run
5a. Check genome availability
python scripts/manage_genomes.py check <genome>
# If not installed:
python scripts/manage_genomes.py download <genome>Common genomes: GRCh38 (human), GRCh37 (legacy), GRCm39 (mouse), R64-1-1 (yeast), BDGP6 (fly)
5b. Decision points
DECISION POINT: Confirm with user:
Genome: Which reference to use
Pipeline-specific options:
rnaseq: aligner (star_salmon recommended, hisat2 for low memory)
sarek: tools (haplotypecaller for germline, mutect2 for somatic)
atacseq: read_length (50, 75, 100, or 150)
5c. Run pipeline
nextflow run nf-core/<pipeline> \
-r <version> \
-profile docker \
--input samplesheet.csv \
--outdir results \
--genome <genome> \
-resumeKey flags:
-r: Pin version-profile docker: Use Docker (orsingularityfor HPC)--genome: iGenomes key-resume: Continue from checkpoint
Resource limits (if needed):
--max_cpus 8 --max_memory '32.GB' --max_time '24.h'Step 6: Verify Outputs
Check completion
ls results/multiqc/multiqc_report.html
grep "Pipeline completed successfully" .nextflow.logKey outputs by pipeline
rnaseq:
results/star_salmon/salmon.merged.gene_counts.tsv- Gene countsresults/star_salmon/salmon.merged.gene_tpm.tsv- TPM values
sarek:
results/variant_calling/*/- VCF filesresults/preprocessing/recalibrated/- BAM files
atacseq:
results/macs2/narrowPeak/- Peak callsresults/bwa/mergedLibrary/bigwig/- Coverage tracks
Quick Reference
For common exit codes and fixes, see references/troubleshooting.md.
Resume failed run
nextflow run nf-core/<pipeline> -resumeReferences
references/geo-sra-acquisition.md - Downloading public GEO/SRA data
references/troubleshooting.md - Common issues and fixes
references/installation.md - Environment setup
references/pipelines/rnaseq.md - RNA-seq pipeline details
references/pipelines/sarek.md - Variant calling details
references/pipelines/atacseq.md - ATAC-seq details
Disclaimer
This skill is provided as a prototype example demonstrating how to integrate nf-core bioinformatics pipelines into Claude Code for automated analysis workflows. The current implementation supports three pipelines (rnaseq, sarek, and atacseq), serving as a foundation that enables the community to expand support to the full set of nf-core pipelines.
It is intended for educational and research purposes and should not be considered production-ready without appropriate validation for your specific use case. Users are responsible for ensuring their computing environment meets pipeline requirements and for verifying analysis results.
Anthropic does not guarantee the accuracy of bioinformatics outputs, and users should follow standard practices for validating computational analyses. This integration is not officially endorsed by or affiliated with the nf-core community.
Attribution
When publishing results, cite the appropriate pipeline. Citations are available in each nf-core repository's CITATIONS.md file (e.g., https://github.com/nf-core/rnaseq/blob/3.22.2/CITATIONS.md).
Licenses
nf-core pipelines: MIT License (https://nf-co.re/about)
Nextflow: Apache License, Version 2.0 (https://www.nextflow.io/about-us.html)
NCBI SRA Toolkit: Public Domain (https://github.com/ncbi/sra-tools/blob/master/LICENSE)
Files
- ATTRIBUTION.mdAdded by AutoGineer972 B
- LICENSE.txt10.0 KiB
- SKILL.md8.6 KiB
- references/geo-sra-acquisition.md13.8 KiB
- references/installation.md1.8 KiB
- references/pipelines/atacseq.md4.1 KiB
- references/pipelines/rnaseq.md3.5 KiB
- references/pipelines/sarek.md3.9 KiB
- references/troubleshooting.md3.3 KiB
- scripts/check_environment.pyScript13.8 KiB
- scripts/config/genomes.yaml3.4 KiB
- scripts/config/pipelines/atacseq.yaml5.0 KiB
- scripts/config/pipelines/rnaseq.yaml4.1 KiB
- scripts/config/pipelines/sarek.yaml6.1 KiB
- scripts/detect_data_type.pyScript9.7 KiB
- scripts/generate_samplesheet.pyScript15.1 KiB
- scripts/manage_genomes.pyScript16.3 KiB
- scripts/sra_geo_fetch.pyScript24.4 KiB
- scripts/utils/__init__.pyScript1.7 KiB
- scripts/utils/file_discovery.pyScript5.0 KiB
- scripts/utils/ncbi_utils.pyScript27.8 KiB
- scripts/utils/sample_inference.pyScript7.7 KiB
- scripts/utils/validators.pyScript8.2 KiB
references/geo-sra-acquisition.md
GEO/SRA Data Acquisition
Download raw sequencing data from NCBI GEO/SRA and prepare it for nf-core pipelines.
Use this when: Reanalyzing published datasets, validating findings, or comparing results against public cohorts.
Table of Contents
Workflow Overview
Step 1: Fetch Study Information
Step 2: Review Sample Groups
Step 3: Download FASTQ Files
Step 4: Generate Samplesheet
Step 5: Run nf-core Pipeline
Supported Pipelines
Supported Organisms
Complete Example
Troubleshooting
Workflow Overview
Example: "Find differentially expressed genes in GSE309891 (drug-treated vs control)"
┌─────────────────────────────────────────────────────────────────┐
│ GEO/SRA DATA ACQUISITION │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌────────────────────────┐
│ Fetch study info │
│ • Query NCBI/SRA │
│ • Get metadata │
│ • Detect organism │
│ • Identify data type │
└────────────────────────┘
│
▼
┌────────────────────────┐
│ Present summary │
│ • Organism: Human │
│ • Genome: GRCh38 │
│ • Type: RNA-Seq │
│ • Pipeline: rnaseq │
│ • Samples: 12 │
│ (6 treated, │
│ 6 control) │
│ • Size: ~24 GB │
└────────────────────────┘
│
▼
┌─────────────────┐
│ USER CONFIRMS │◄──── Decision point
│ genome/pipeline│
└─────────────────┘
│
▼
┌────────────────────────┐
│ Select samples │
│ • Group by condition │
│ • Show treated/ctrl │
└────────────────────────┘
│
▼
┌─────────────────┐
│ USER SELECTS │◄──── Decision point
│ sample subset │
└─────────────────┘
│
▼
┌────────────────────────┐
│ Download FASTQs │
│ • 24 files (R1+R2) │
│ • Parallel transfers │
│ • Auto-resume │
└────────────────────────┘
│
▼
┌────────────────────────┐
│ Generate samplesheet │
│ • Map SRR to files │
│ • Pair R1/R2 │
│ • Assign conditions │
└────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ NF-CORE PIPELINE EXECUTION │
│ (Continue with Step 1 of main workflow) │
└─────────────────────────────────────────────────────────────────┘Instructions for Claude
When assisting users with GEO/SRA data acquisition:
Always fetch study info first to show the user what data is available
Ask for confirmation before downloading - Present the sample groups and sizes, then ask which subset to download using AskUserQuestion
Suggest appropriate genome and pipeline based on the organism and data type
Return to main SKILL.md workflow after data preparation is complete
Example confirmation question:
Question: "Which sample group would you like to download?"
Options:
- "RNA-Seq:PAIRED (42 samples, ~87 GB)"
- "RNA-Seq:SINGLE (7 samples, ~4.5 GB)"
- "All samples (49 samples, ~92 GB)"Step 1: Fetch Study Information
Get metadata about a GEO study before downloading.
python scripts/sra_geo_fetch.py info <GEO_ID>Example:
python scripts/sra_geo_fetch.py info GSE110004Output includes:
Study title and summary
Organism (with auto-suggested genome)
Number of samples and runs
Data types (RNA-Seq, ATAC-seq, etc.)
Estimated download size
Suggested nf-core pipeline
Save info to JSON:
python scripts/sra_geo_fetch.py info GSE110004 -o study_info.jsonStep 2: Review Sample Groups
View sample groups organized by data type and layout. This is useful for studies with mixed data types.
python scripts/sra_geo_fetch.py groups <GEO_ID>Example output:
Sample Group Count Layout GSM Range Est. Size
--------------------------------------------------------------------------------
RNA-Seq 42 PAIRED GSM2879618...(42 samples) 87.4 GB
RNA-Seq 7 SINGLE GSM2976181-GSM2976187 4.5 GB
--------------------------------------------------------------------------------
TOTAL 49 91.9 GB
Available groups for --subset option:
1. "RNA-Seq:PAIRED" - 42 samples (~87.4 GB)
2. "RNA-Seq:SINGLE" - 7 samples (~4.5 GB)List individual runs:
python scripts/sra_geo_fetch.py list <GEO_ID>
# Filter by data type
python scripts/sra_geo_fetch.py list GSE110004 --filter "RNA-Seq:PAIRED"DECISION POINT: Review the sample groups. Decide which subset to download if the study has multiple data types.
Step 3: Download FASTQ Files
Download FASTQ files from ENA (faster than SRA).
python scripts/sra_geo_fetch.py download <GEO_ID> -o <OUTPUT_DIR>Options:
-o, --output: Output directory (required)-i, --interactive: Interactively select sample group to download-s, --subset: Filter by data type (e.g., "RNA-Seq:PAIRED")-p, --parallel: Parallel downloads (default: 4)-t, --timeout: Download timeout in seconds (default: 600)
Interactive Mode (Recommended)
Use -i flag for interactive sample selection when the study has multiple data types:
python scripts/sra_geo_fetch.py download GSE110004 -o ./fastq -iInteractive output:
============================================================
SELECT SAMPLE GROUP TO DOWNLOAD
============================================================
[1] RNA-Seq (paired)
Samples: 42
GSM: GSM2879618...(42 samples)
Size: ~87.4 GB
[2] RNA-Seq (single)
Samples: 7
GSM: GSM2976181-GSM2976187
Size: ~4.5 GB
[0] Download ALL (49 samples)
------------------------------------------------------------
Enter selection (0-2):Direct Subset Selection
Alternatively, specify the subset directly:
# Download only RNA-Seq paired-end data
python scripts/sra_geo_fetch.py download GSE110004 -o ./fastq \
--subset "RNA-Seq:PAIRED" --parallel 6Note: Downloads automatically skip existing files. Resume interrupted downloads by re-running the command.
Step 4: Generate Samplesheet
Create a samplesheet compatible with nf-core pipelines.
python scripts/sra_geo_fetch.py samplesheet <GEO_ID> \
--fastq-dir <FASTQ_DIR> \
-o samplesheet.csvOptions:
-f, --fastq-dir: Directory containing downloaded FASTQ files (required)-o, --output: Output samplesheet path (default: samplesheet.csv)-p, --pipeline: Target pipeline (auto-detected if not specified)
Example:
python scripts/sra_geo_fetch.py samplesheet GSE110004 \
--fastq-dir ./fastq \
-o samplesheet.csvOutput: The script will:
Create samplesheet in the format required by the target pipeline
Display suggested genome reference
Show suggested nf-core command
Step 5: Run nf-core Pipeline
After generating the samplesheet, the script provides a suggested command.
Example output:
Suggested command:
nextflow run nf-core/rnaseq \
--input samplesheet.csv \
--outdir results \
--genome R64-1-1 \
-profile dockerDECISION POINT: Review and confirm:
Is the suggested pipeline correct?
Is the genome reference correct for your organism?
Do you need additional pipeline options?
Then return to the main SKILL.md workflow (Step 1: Environment Check) to proceed with pipeline execution.
Supported Pipelines
The skill auto-detects appropriate pipelines based on library strategy. Pipelines marked with ★ are fully supported with configs, samplesheet generation, and documentation. Others are suggested but require manual setup following nf-core documentation.
| Library Strategy | Suggested Pipeline | Support |
|---|---|---|
| RNA-Seq | nf-core/rnaseq | ★ Full |
| ATAC-seq | nf-core/atacseq | ★ Full |
| WGS/WXS | nf-core/sarek | ★ Full |
| ChIP-seq | nf-core/chipseq | Manual |
| Bisulfite-Seq | nf-core/methylseq | Manual |
| miRNA-Seq | nf-core/smrnaseq | Manual |
| Amplicon | nf-core/ampliseq | Manual |
Supported Organisms
Common organisms with auto-suggested genomes:
| Organism | Genome | Notes |
|---|---|---|
| Homo sapiens | GRCh38 | Human reference |
| Mus musculus | GRCm39 | Mouse reference |
| Saccharomyces cerevisiae | R64-1-1 | Yeast S288C |
| Drosophila melanogaster | BDGP6 | Fruit fly |
| Caenorhabditis elegans | WBcel235 | C. elegans |
| Danio rerio | GRCz11 | Zebrafish |
| Arabidopsis thaliana | TAIR10 | Arabidopsis |
| Rattus norvegicus | Rnor_6.0 | Rat |
See scripts/config/genomes.yaml for the full list.
Complete Example
Reanalyze GSE110004 (yeast RNA-seq):
# 1. Get study info and sample groups
python scripts/sra_geo_fetch.py info GSE110004
# 2. Download with interactive selection
python scripts/sra_geo_fetch.py download GSE110004 -o ./fastq -i
# Select option [1] for RNA-Seq paired-end samples
# 3. Generate samplesheet
python scripts/sra_geo_fetch.py samplesheet GSE110004 \
--fastq-dir ./fastq \
-o samplesheet.csv
# 4. Run nf-core/rnaseq (continue with main SKILL.md workflow)
nextflow run nf-core/rnaseq \
--input samplesheet.csv \
--outdir results \
--genome R64-1-1 \
-profile dockerAlternative: Non-interactive Download
# Review sample groups first
python scripts/sra_geo_fetch.py groups GSE110004
# Download specific subset directly
python scripts/sra_geo_fetch.py download GSE110004 \
--subset "RNA-Seq:PAIRED" \
-o ./fastq \
--parallel 4Troubleshooting
ENA Download Fails
If ENA downloads fail, the data may need to be fetched directly from SRA:
# Create SRA tools environment
conda create -n sra_tools -c bioconda sra-tools
# Download with prefetch + fasterq-dump
conda run -n sra_tools prefetch SRR6357070
conda run -n sra_tools fasterq-dump SRR6357070 -O ./fastqNo SRA Runs Found
Some GEO datasets only have processed data, not raw sequencing reads. Check:
python scripts/sra_geo_fetch.py info <GEO_ID>If "Runs: 0", the dataset may not have raw data in SRA.
SuperSeries Support
GEO SuperSeries (which contain multiple SubSeries) are automatically handled. The tool will:
Detect that a GEO ID is a SuperSeries
Find the linked BioProject accession
Fetch all SRA runs from the BioProject
Example: GSE110004 is a SuperSeries that links to BioProject PRJNA432544.
Genome Not Recognized
If the organism is not in the genome mapping, manually specify the genome:
# Check available iGenomes
python scripts/manage_genomes.py list
# Or provide custom reference files to nf-core
nextflow run nf-core/rnaseq --fasta /path/to/genome.fa --gtf /path/to/genes.gtfRequirements
Python 3.8+
requestslibrary (optional but recommended)pyyamllibrary (optional, for genome config)Network access to NCBI and ENA
Install optional dependencies:
pip install requests pyyamlRequirements and compatibility
Written for: Claude Code, Claude apps
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs network access, Needs Python
Security
What our scanner noticed· Medium risk
- Instructions that use the network
- Downloads piped into a shell
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Anthropic
- Publisher
- Anthropic (Official)
- Source
- anthropics/knowledge-work-plugins · bio-research/skills/nextflow-development · commit e050c2e
- Licence
- Apache License 2.0 (redistribution allowed)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Anthropic or Anthropic.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download nextflow-development.zip