nextflow-development by anthropics/knowledge-work-plugins
npx skills add https://github.com/anthropics/knowledge-work-plugins --skill nextflow-development在本地或公共测序数据上运行 nf-core 生物信息学流程。
目标用户: 没有专门生物信息学培训的实验室科学家和研究人员,他们需要运行大规模组学分析——差异表达、变异检测或染色质可及性分析。
- [ ] 步骤 0:获取数据(如果来自 GEO/SRA)
- [ ] 步骤 1:环境检查(必须通过)
- [ ] 步骤 2:选择流程(与用户确认)
- [ ] 步骤 3:运行测试配置文件(必须通过)
- [ ] 步骤 4:创建样本表
- [ ] 步骤 5:配置并运行(与用户确认基因组)
- [ ] 步骤 6:验证输出
如果用户有本地 FASTQ 文件,请跳过此步骤。
对于公共数据集,首先从 GEO/SRA 获取。完整工作流程请参阅 references/geo-sra-acquisition.md。
快速开始:
# 1. 获取研究信息
python scripts/sra_geo_fetch.py info GSE110004
# 2. 下载(交互模式)
python scripts/sra_geo_fetch.py download GSE110004 -o ./fastq -i
# 3. 生成样本表
python scripts/sra_geo_fetch.py samplesheet GSE110004 --fastq-dir ./fastq -o samplesheet.csv
决策点: 获取研究信息后,与用户确认:
然后继续步骤 1。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
首先运行。环境未通过检查,流程将失败。
python scripts/check_environment.py
所有关键检查必须通过。如果有任何失败,请提供修复说明:
| 问题 | 修复 |
|---|---|
| 未安装 | 从 https://docs.docker.com/get-docker/ 安装 |
| 权限被拒绝 | sudo usermod -aG docker $USER 然后重新登录 |
| 守护进程未运行 | sudo systemctl start docker |
| 问题 | 修复 |
|---|---|
| 未安装 | `curl -s https://get.nextflow.io |
| 版本 < 23.04 | nextflow self-update |
| 问题 | 修复 |
|---|---|
| 未安装 / < 11 | sudo apt install openjdk-11-jdk |
在所有检查通过之前不要继续。 对于 HPC/Singularity,请参阅 references/troubleshooting.md。
决策点:在继续之前与用户确认。
| 数据类型 | 流程 | 版本 | 目标 |
|---|---|---|---|
| RNA-seq | rnaseq | 3.22.2 | 基因表达 |
| WGS/WES | sarek | 3.7.1 | 变异检测 |
| ATAC-seq | atacseq | 2.1.2 | 染色质可及性 |
从数据自动检测:
python scripts/detect_data_type.py /path/to/data
有关流程特定详细信息:
使用小数据验证环境。在运行真实数据之前必须通过。
nextflow run nf-core/<pipeline> -r <version> -profile test,docker --outdir test_output
| 流程 | 命令 |
|---|---|
| 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 |
验证:
ls test_output/multiqc/multiqc_report.html
grep "Pipeline completed successfully" .nextflow.log
如果测试失败,请参阅 references/troubleshooting.md。
python scripts/generate_samplesheet.py /path/to/data <pipeline> -o samplesheet.csv
该脚本:
对于 sarek: 如果未自动检测到,脚本会提示输入肿瘤/正常状态。
python scripts/generate_samplesheet.py --validate samplesheet.csv <pipeline>
rnaseq:
sample,fastq_1,fastq_2,strandedness
SAMPLE1,/abs/path/R1.fq.gz,/abs/path/R2.fq.gz,auto
sarek:
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,0
atacseq:
sample,fastq_1,fastq_2,replicate
CONTROL,/abs/path/ctrl_R1.fq.gz,/abs/path/ctrl_R2.fq.gz,1
python scripts/manage_genomes.py check <genome>
# 如果未安装:
python scripts/manage_genomes.py download <genome>
常用基因组:GRCh38(人类)、GRCh37(旧版)、GRCm39(小鼠)、R64-1-1(酵母)、BDGP6(果蝇)
决策点:与用户确认:
nextflow run nf-core/<pipeline> \
-r <version> \
-profile docker \
--input samplesheet.csv \
--outdir results \
--genome <genome> \
-resume
关键标志:
-r:固定版本-profile docker:使用 Docker(或 HPC 使用 singularity)--genome:iGenomes 键-resume:从检查点继续资源限制(如果需要):
--max_cpus 8 --max_memory '32.GB' --max_time '24.h'
ls results/multiqc/multiqc_report.html
grep "Pipeline completed successfully" .nextflow.log
rnaseq:
results/star_salmon/salmon.merged.gene_counts.tsv - 基因计数results/star_salmon/salmon.merged.gene_tpm.tsv - TPM 值sarek:
results/variant_calling/*/ - VCF 文件results/preprocessing/recalibrated/ - BAM 文件atacseq:
results/macs2/narrowPeak/ - 峰调用results/bwa/mergedLibrary/bigwig/ - 覆盖度轨迹常见退出代码和修复方法,请参阅 references/troubleshooting.md。
nextflow run nf-core/<pipeline> -resume
此技能作为原型示例提供,演示如何将 nf-core 生物信息学流程集成到 Claude Code 中,以实现自动化分析工作流程。当前实现支持三个流程(rnaseq、sarek 和 atacseq),作为基础,使社区能够扩展支持到完整的 nf-core 流程集。
它旨在用于教育和研究目的,未经针对您特定用例的适当验证,不应视为生产就绪。用户需负责确保其计算环境满足流程要求,并负责验证分析结果。
Anthropic 不保证生物信息学输出的准确性,用户应遵循验证计算分析的标准实践。此集成未经 nf-core 社区官方认可或附属。
发表结果时,请引用相应的流程。引用信息可在每个 nf-core 仓库的 CITATIONS.md 文件中找到(例如,https://github.com/nf-core/rnaseq/blob/3.22.2/CITATIONS.md)。
每周安装次数
132
仓库
GitHub 星标数
8.9K
首次出现
2026年1月31日
安全审计
安装于
opencode115
codex115
gemini-cli109
github-copilot106
claude-code103
cursor100
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.
- [ ] 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 outputs
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.csv
DECISION POINT: After fetching study info, confirm with user:
Then continue to Step 1.
Run first. Pipeline will fail without passing environment.
python scripts/check_environment.py
All critical checks must pass. If any fail, provide fix instructions:
| 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 |
| Problem | Fix |
|---|---|
| Not installed | `curl -s https://get.nextflow.io |
| Version < 23.04 | nextflow self-update |
| 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.
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/data
For pipeline-specific details:
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.log
If test fails, see references/troubleshooting.md.
python scripts/generate_samplesheet.py /path/to/data <pipeline> -o samplesheet.csv
The script:
For sarek: Script prompts for tumor/normal status if not auto-detected.
python scripts/generate_samplesheet.py --validate samplesheet.csv <pipeline>
rnaseq:
sample,fastq_1,fastq_2,strandedness
SAMPLE1,/abs/path/R1.fq.gz,/abs/path/R2.fq.gz,auto
sarek:
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,0
atacseq:
sample,fastq_1,fastq_2,replicate
CONTROL,/abs/path/ctrl_R1.fq.gz,/abs/path/ctrl_R2.fq.gz,1
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)
DECISION POINT: Confirm with user:
nextflow run nf-core/<pipeline> \
-r <version> \
-profile docker \
--input samplesheet.csv \
--outdir results \
--genome <genome> \
-resume
Key flags:
-r: Pin version-profile docker: Use Docker (or singularity for HPC)--genome: iGenomes key-resume: Continue from checkpointResource limits (if needed):
--max_cpus 8 --max_memory '32.GB' --max_time '24.h'
ls results/multiqc/multiqc_report.html
grep "Pipeline completed successfully" .nextflow.log
rnaseq:
results/star_salmon/salmon.merged.gene_counts.tsv - Gene countsresults/star_salmon/salmon.merged.gene_tpm.tsv - TPM valuessarek:
results/variant_calling/*/ - VCF filesresults/preprocessing/recalibrated/ - BAM filesatacseq:
results/macs2/narrowPeak/ - Peak callsresults/bwa/mergedLibrary/bigwig/ - Coverage tracksFor common exit codes and fixes, see references/troubleshooting.md.
nextflow run nf-core/<pipeline> -resume
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.
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).
Weekly Installs
132
Repository
GitHub Stars
8.9K
First Seen
Jan 31, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
opencode115
codex115
gemini-cli109
github-copilot106
claude-code103
cursor100
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
33,600 周安装
SQLAlchemy Alembic 专家最佳实践与代码审查指南 - 生产级数据库迁移优化
322 周安装
AI会话交接技能:无缝延续工作流,创建结构化交接文档和提示
321 周安装
Pixi.js游戏开发指南:TypeScript优化、移动端性能与最佳实践
320 周安装
Claude代码模板create-plan:AI辅助创建可执行开发计划,提升编程效率
318 周安装
React性能优化最佳实践指南 - 40+规则提升Next.js应用性能
318 周安装
浏览器自动化专家指南:Playwright、Puppeteer、Selenium实战技巧与最佳实践
317 周安装