
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
StaPH-B(State Public Health Lab Bioinformatics,州公共卫生实验室生物信息学联盟)维护的docker-builds仓库提供了一系列生物信息学工具的Docker镜像。该项目旨在为公共卫生领域的研究人员和实验室提供集中化、易于访问的Docker镜像资源,包含详细的构建说明和使用文档,确保工具部署的一致性和可重复性。这些镜像广泛应用于病原体基因组监测(如SARS-CoV-2)、 antimicrobial resistance (AMR) 分析、基因组组装与注释等公共卫生关键场景。
staphb镜像不受Dockerhub***用户拉取限制(如100次/6小时)影响。若遇到toomanyrequests错误,可提交issue反馈。4.1.1 从Dockerhub获取
StaPH-B镜像在Dockerhub的命名空间为staphb/,可通过以下命令拉取:
bash# 拉取指定工具和版本(以FastQC 0.11.9为例) docker pull docker.xuanyuan.run/staphb/fastqc:0.11.9 # 拉取最新版本(若未指定版本标签,默认latest) docker pull docker.xuanyuan.run/staphb/fastqc
4.1.2 从Quay.io获取
镜像同时同步至Quay.io的staphb组织,拉取命令类似:
bashdocker pull ***-quay.xuanyuan.run/staphb/fastqc:0.11.9
以FastQC(测序数据质控工具)为例,展示容器运行方法:
4.2.1 查看工具帮助
bashdocker run --rm docker.xuanyuan.run/staphb/fastqc:0.11.9 fastqc --help
4.2.2 处理本地数据(挂载宿主机目录)
将宿主机的/path/to/fastq目录挂载到容器内的/data,并对sample.fastq.gz进行质控:
bashdocker run --rm -v /path/to/fastq:/data docker.xuanyuan.run/staphb/fastqc:0.11.9 fastqc /data/sample.fastq.gz -o /data/output
--rm:容器运行后自动删除-v /path/to/fastq:/data:将宿主机目录挂载到容器内,实现数据共享-o /data/output:指定输出目录(需在宿主机/path/to/fastq下提前创建output文件夹)对于不支持Docker的环境(如HPC),可将Docker镜像转换为Singularity格式:
4.3.1 直接从Dockerhub拉取并转换
bashsingularity pull docker://staphb/fastqc:0.11.9
4.3.2 运行Singularity容器
bashsingularity run fastqc_0.11.9.sif fastqc sample.fastq.gz -o output
-v参数挂载宿主机目录,避免容器内数据丢失。--cpus和--memory限制资源使用:
bashdocker run --rm -v /data:/data --cpus 8 --memory 32g docker.xuanyuan.run/staphb/flye:2.9 flye --threads 8 --genome-size 5m /data/reads.fastq -o /data/assembly
| 软件名称 | 支持版本 | 官方链接 |
|---|---|---|
| ABRicate | 0.8.7, 0.8.13, 0.8.13s (+serotypefinder db), 0.9.8, 1.0.0 | https://github.com/tseemann/abricate |
| any2fasta | 0.4.2 | https://github.com/tseemann/any2fasta |
| ARIBA | 2.14.4 | https://github.com/sanger-pathogens/ariba |
| artic-ncov2019 | 1.3.0 | https://github.com/artic-network/fieldbioinformatics |
| BCFtools | 1.10.2, 1.11, 1.12, 1.13, 1.14 | https://github.com/samtools/bcftools |
| BEDTools | 2.29.2, 2.30.0 | https://bedtools.readthedocs.io/en/latest/ |
| BWA | 0.7.17 | https://github.com/lh3/bwa |
| Canu | 2.0, 2.1.1, 2.2 | https://canu.readthedocs.io/en/latest/ |
| FastANI | 1.1, 1.32, 1.33 | https://github.com/ParBLiSS/FastANI |
| FastQC | 0.11.8, 0.11.9 | https://www.bioinformatics.babraham.ac.uk/projects/fastqc/ |
| Flye | 2.5, 2.7, 2.8, 2.9 | https://github.com/fenderglass/Flye |
| Freyja | 1.2, 1.2.1, 1.3.1, 1.3.2 | https://github.com/andersen-lab/Freyja |
| NCBI AMRFinderPlus | 3.1.1b, 3.8.4, 3.8.28, 3.9.3, 3.9.8, 3.10.1, 3.10.5, 3.10.16, 3.10.20 | https://github.com/ncbi/amr |
| Pangolin | 1.1.14, 2.0.4-2.4.2(含pangoLEARN数据), 3.0.5-3.1.20 | https://github.com/cov***ges/pangolin |
| minimap2 | 2.17, 2.18, 2.21, 2.22, 2.23, 2.24 | https://github.com/lh3/minimap2 |
| mlst | 2.16.2, 2.17.6, 2.19.0 | https://github.com/tseemann/mlst |
若需添加新镜像或改进现有镜像,可通过以下流程贡献:
如遇镜像使用问题(如拉取失败、功能异常),请在GitHub仓库提交issue:
https://github.com/StaPH-B/docker-builds/issues
toomanyrequests错误,请提交issue反馈。:0.11.9),避免因latest标签更新导致流程不稳定。您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务