
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Juicer分析的Docker镜像仓库。GitHub地址:https://github.com/rnakato/docker_juicer
bash# 拉取镜像 docker pull docker.xuanyuan.run/rnakato/juicer # 容器登录 docker run [--gpus all] --rm -it rnakato/juicer /bin/bash # 执行命令 docker run [--gpus all] --rm -v (你的目录):/opt/work rnakato/juicer <命令>
bash# 构建镜像 singularity build -F rnakato_juicer.sif docker://rnakato/juicer # 执行命令 singularity exec [--nv] rnakato_juicer.sif <命令>
脚本假设fastq文件存储在fastq/$cell(例如fastq/Control_1)。输出结果存储在JuicerResults/$cell。
BWA索引文件应位于/work/Database/bwa-indexes/UCSC-$build。
使用Singularity镜像(rnakato_juicer.sif)的完整命令如下:
bashbuild=hg38 fastq_post="_R" # .fastq.gz前的"_"或"_R" enzyme=MboI # 酶类型 gt=genome_table.$build.txt # genome_table文件 gene=refFlat.$build.txt # 基因注释(refFlat格式) sing="singularity exec rnakato_juicer.sif" # singularity命令 for cell in `ls fastq/* -d | grep -v .sh` do cell=$(basename $cell) odir=$(pwd)/JuicerResults/$cell echo $cell rm -rf $odir mkdir -p $odir if test ! -e $odir/fastq; then ln -s $(pwd)/fastq/$cell/ $odir/fastq; fi # 通过Juicer生成.hic文件 $sing juicer_map.sh $odir $build $enzyme $fastq_post # 绘制接触频率 if test ! -e $odir/distance; then $sing plot_distance_count.sh $cell $odir; fi # 选择归一化类型 norm=VC_SQRT # 为染色体构建接触矩阵 hic=$odir/aligned/inter_30.hic if test ! -e $odir/Matrix; then $sing juicer_makematrix.sh $norm $hic $odir $gt fi # 调用TADs(arrowHead) if test ! -e $odir/TAD; then $sing juicer_callTAD.sh $norm $hic $odir $gt fi # 计算Pearson系数和Eigenvector for resolution in 25000 do $sing makeEigen.sh Pearson $norm $odir $hic $resolution $gt $gene $sing makeEigen.sh Eigen $norm $odir $hic $resolution $gt $gene done # 计算绝缘分数 if test ! -e $odir/InsulationScore; then $sing juicer_insulationscore.sh $norm $odir $gt; fi # 调用环(HICCUPS,添加'--nv'选项以使用GPU) singularity exec --nv rnakato_juicer.sif call_HiCCUPS.sh $norm $odir $hic $build # 基序分析 $sing juicertools.sh motifs $build $motifdir $odir/loops/$norm/merged_loops.bedpe hg38.motifs.txt done
首先克隆仓库并进入目录
bashgit clone https://github.com/rnakato/docker_juicer.git cd docker_juicer
然后执行:
bashdocker build -t <账户名>/juicer .
Ryuichiro Nakato: rnakato AT iqb.u-tokyo.ac.jp
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务