- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试运行此 pipeline ,它使用 Nextflow 实现并使用 Docker 容器。不幸的是,我不能使用 Docker,因为它不兼容 HPC(没有 sudo),所以我使用 Singularity 而不是 Docker。但是,似乎路径未正确安装,因为我收到此错误:
Error executing process > 'truncate_input_headers'
Caused by:
Process `truncate_input_headers` terminated with an error exit status (1)
Command executed:
truncate_header.lua < phased.1_scaffolds_FINAL.fasta > truncated.fasta
Command exit status:
1
Command output:
(empty)
Command error:
.command.sh: line 2: phased.1_scaffolds_FINAL.fasta: No such file or directory
Work dir:
/work/project/ladsie_002/work/77/1854982bdacdd60fbe447554ab153b
Tip: you can replicate the issue by changing to the process work dir and entering the command `bash .command.run`
$ ll /work/project/ladsie_002/work/77/1854982bdacdd60fbe447554ab153b
total 1
lrwxrwxrwx 1 bbrink users 76 30. Aug 13:44 phased.1_scaffolds_FINAL.fasta -> /work/project/ladsie_002/companion/input/pleo/phased.1_scaffolds_FINAL.fasta
env {
GT_RETAINIDS = "yes"
AUGUSTUS_CONFIG_PATH = "/opt/data/augustus"
FILTER_SHORT_PARTIALS_RULE = "/opt/data/filters/filter_short_partials.lua"
PFAM = "/opt/pfam/Pfam-A.hmm"
PFAM2GO = "/opt/data/pfam2go/pfam2go.txt"
RATT_CONFIG = "/opt/RATT/RATT.config_euk_NoPseudo_SpliceSite"
}
params.GO_OBO = "/opt/go.obo"
params.NCRNA_MODELS = "/opt/data/cm/rnas.cm"
params.CIRCOS_CONFIG_FILE = "/opt/data/circos/circos.debian.conf"
params.CIRCOS_BIN_CONFIG_FILE = "/opt/data/circos/circos.bin.debian.conf"
params.SPECFILE = "/opt/data/speck/output_check.lua"
params.AUGUSTUS_EXTRINSIC_CFG = "/opt/data/augustus/extrinsic.cfg"
process {
container = 'sangerpathogens/companion:latest'
}
singularity {
enabled = true
// autoMounts = true
}
executor {
name = 'local'
queueSize = 2
pollInterval = '3sec'
}
autoMounts = true
选项(上面注释掉),这会导致管道在启用时甚至找不到它自己的 lua 脚本:
Error executing process > 'truncate_input_headers'
Caused by:
Process `truncate_input_headers` terminated with an error exit status (127)
Command executed:
truncate_header.lua < phased.1_scaffolds_FINAL.fasta > truncated.fasta
Command exit status:
127
Command output:
(empty)
Command error:
.command.sh: line 2: truncate_header.lua: command not found
Work dir:
/work/project/ladsie_002/work/95/f03b31ed18a84f331b83cad0232bd5
Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`
--debug
至
singularity.engineOptions
.但是,有问题的路径似乎已安装:
Error executing process > 'truncate_input_headers'
Caused by:
Process `truncate_input_headers` terminated with an error exit status (1)
Command executed:
truncate_header.lua < phased.1_scaffolds_FINAL.fasta > truncated.fasta
Command exit status:
1
Command output:
(empty)
Command error:
DEBUG [U=1038,P=29509] mountGeneric() Mounting tmpfs to /var/singularity/mnt/session
DEBUG [U=1038,P=29509] mountImage() Mounting loop device /dev/loop0 to /var/singularity/mnt/session/rootfs
DEBUG [U=1038,P=29509] mountGeneric() Mounting overlay to /var/singularity/mnt/session/final
DEBUG [U=1038,P=29509] setPropagationMount() Set RPC mount propagation flag to SLAVE
VERBOSE [U=1038,P=29509] Passwd() Checking for template passwd file: /var/singularity/mnt/session/rootfs/etc/passwd
VERBOSE [U=1038,P=29509] Passwd() Creating passwd content
VERBOSE [U=1038,P=29509] Passwd() Creating template passwd file and appending user data: /var/singularity/mnt/session/rootfs/etc/passwd
DEBUG [U=1038,P=29509] addIdentityMount() Adding /etc/passwd to mount list
VERBOSE [U=1038,P=29509] addIdentityMount() Default mount: /etc/passwd:/etc/passwd
VERBOSE [U=1038,P=29509] Group() Checking for template group file: /var/singularity/mnt/session/rootfs/etc/group
VERBOSE [U=1038,P=29509] Group() Creating group content
DEBUG [U=1038,P=29509] addIdentityMount() Adding /etc/group to mount list
VERBOSE [U=1038,P=29509] addIdentityMount() Default mount: /etc/group:/etc/group
DEBUG [U=1038,P=29509] mountGeneric() Remounting /var/singularity/mnt/session/final
DEBUG [U=1038,P=29509] mountGeneric() Mounting /dev to /var/singularity/mnt/session/final/dev
DEBUG [U=1038,P=29509] mountGeneric() Mounting /etc/localtime to /var/singularity/mnt/session/final/usr/share/zoneinfo/UTC
DEBUG [U=1038,P=29509] mountGeneric() Mounting /etc/hosts to /var/singularity/mnt/session/final/etc/hosts
DEBUG [U=1038,P=29509] mountGeneric() Mounting /etc/singularity/actions to /var/singularity/mnt/session/final/.singularity.d/actions
DEBUG [U=1038,P=29509] mountGeneric() Remounting /var/singularity/mnt/session/final/.singularity.d/actions
DEBUG [U=1038,P=29509] mountGeneric() Mounting /proc to /var/singularity/mnt/session/final/proc
DEBUG [U=1038,P=29509] mountGeneric() Remounting /var/singularity/mnt/session/final/proc
DEBUG [U=1038,P=29509] mountGeneric() Mounting sysfs to /var/singularity/mnt/session/final/sys
DEBUG [U=1038,P=29509] mountGeneric() Mounting /home/bbrink to /var/singularity/mnt/session/home/bbrink
DEBUG [U=1038,P=29509] mountGeneric() Remounting /var/singularity/mnt/session/home/bbrink
DEBUG [U=1038,P=29509] mountGeneric() Mounting /var/singularity/mnt/session/home/bbrink to /var/singularity/mnt/session/final/home/bbrink
DEBUG [U=1038,P=29509] mountGeneric() Remounting /var/singularity/mnt/session/final/home/bbrink
DEBUG [U=1038,P=29509] mountGeneric() Mounting /tmp to /var/singularity/mnt/session/final/tmp
DEBUG [U=1038,P=29509] mountGeneric() Remounting /var/singularity/mnt/session/final/tmp
DEBUG [U=1038,P=29509] mountGeneric() Mounting /var/tmp to /var/singularity/mnt/session/final/var/tmp
DEBUG [U=1038,P=29509] mountGeneric() Remounting /var/singularity/mnt/session/final/var/tmp
DEBUG [U=1038,P=29509] mountGeneric() Mounting /work/project/ladsie_002/work/de/74a8bbd8bd11ad1524800fb7e71556 to /var/singularity/mnt/session/final/work/project/ladsie_002/work/de/74a8bbd8bd11ad1524800fb7e71556
DEBUG [U=1038,P=29509] mountGeneric() Remounting /var/singularity/mnt/session/final/work/project/ladsie_002/work/de/74a8bbd8bd11ad1524800fb7e71556
DEBUG [U=1038,P=29509] mountGeneric() Mounting /var/singularity/mnt/session/etc/resolv.conf to /var/singularity/mnt/session/final/etc/resolv.conf
DEBUG [U=1038,P=29509] mountGeneric() Mounting /var/singularity/mnt/session/etc/passwd to /var/singularity/mnt/session/final/etc/passwd
DEBUG [U=1038,P=29509] mountGeneric() Mounting /var/singularity/mnt/session/etc/group to /var/singularity/mnt/session/final/etc/group
DEBUG [U=1038,P=29509] create() Chroot into /var/singularity/mnt/session/final
DEBUG [U=0,P=29543] Chroot() Change current directory to /var/singularity/mnt/session/final
DEBUG [U=0,P=29543] Chroot() Hold reference to host / directory
DEBUG [U=0,P=29543] Chroot() Called pivot_root on /var/singularity/mnt/session/final
DEBUG [U=0,P=29543] Chroot() Change current directory to host / directory
DEBUG [U=0,P=29543] Chroot() Apply slave mount propagation for host / directory
DEBUG [U=0,P=29543] Chroot() Called unmount(/, syscall.MNT_DETACH)
DEBUG [U=0,P=29543] Chroot() Changing directory to / to avoid getpwd issues
DEBUG [U=1038,P=29509] create() Chdir into / to avoid errors
VERBOSE [U=1038,P=29542] startup() Execute stage 2
DEBUG [U=1038,P=29542] Stage() Entering stage 2
DEBUG [U=1038,P=29509] PostStartProcess() Post start process
.command.sh: line 2: phased.1_scaffolds_FINAL.fasta: No such file or directory
DEBUG [U=1038,P=29509] CleanupContainer() Cleanup container
DEBUG [U=1038,P=29509] Master() Child exited with exit status 1
Work dir:
/work/project/ladsie_002/work/de/74a8bbd8bd11ad1524800fb7e71556
gt: error: could not execute script ...rk/project/ladsie_002/companion/bin/gff3_to_embl.lua:74: bad argument #1 to 'lines' (/opt/go.obo: Permission denied)
最佳答案
正如 pditommaso 所提到的,您需要确保奇点图像内的环境设置正确。您可以通过 %environment
进行此操作。奇点定义文件中的 block 或导出SINGULARITY_$VARNAME
在宿主环境中。例如,SINGULARITY_PERL5LIB=/opt/ORTHOMCLV1.4/:/opt/RATT/:/opt/ABACAS2/:$PERL5LIB
在 env
用于设置 PERL5LIB
的 nextflow 配置 block 容器内的变量。
您还可能需要在 singularity.runOptions
中指定要挂载到容器中的数据位置。 .那里的细节取决于您使用的 Singularity 版本以及主机操作系统是否在其内核中启用了 OverlayFS。
编辑1:绑定(bind)/安装
基本形式是-B /host/path:/image/path
.如果 /image/path
奇点镜像中不存在,并且操作系统内核中未启用OverlayFS,您将收到错误消息:WARNING: Skipping user bind, non existent bind point (directory/file) in container: '/image/path'
.在哪里 directory/file
是正在安装的东西。
您可以使用 --debug
查看正在安装的内容带有版本 3+ 的标志,或 -vv
在版本 2 中。在 nextflow 中,这被添加到 singularity.engineOptions
.
请注意,如果挂载目录中的任何符号链接(symbolic link)引用了奇点镜像中不可用的路径,它们将被破坏。
如果挂载的数据包含符号链接(symbolic link),则它们通常很有可能引用未挂载到容器中的文件,并且在运行奇点镜像时似乎是断开的链接。
编辑2:文件权限
构建奇点图像的最简单方法是sudo singularity build companion.sif docker://sangerpathogens/companion:latest
.如果您需要修改任何内容,例如 /opt/go.obo
文件,您需要创建一个定义文件。
Bootstrap: docker
From: sangerpathogens/companion:latest
# note: for reproducibility, it is best to use a tag whose target won't change over time
%post
chmod 644 /opt/go.obo
%post
堵塞。与 Docker 不同,singularity 不会为每个命令使用层来创建镜像,因此您不必担心链接
some_command && some_other_command && so_on && etc
.
关于docker - Nextflow+Singularity : No such file or directory, 即使文件存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57767793/
当我运行 nextflow 时,我得到一个 .nextflow 文件夹,但我找不到更改其位置的方法(即它不是 -work-dir).如何更改 .nextflow 文件夹的位置? 我看过 launchD
鉴于以下 nextflow.config : google { project = "cool-project" region = "europe-west4" l
我有一个输出多个文件的 nextflow 进程,如下所示: [chr1,/path/to/chr1_chunk1.TC.linear] [chr1,/path/to/chr1_chunk1.HDL.l
此处是 NextFlow 的新手,并且在一些基本概念上苦苦挣扎。我正在从 a previous publication 转换一组 bash 脚本进入 NextFlow 工作流程。 我正在转换 a si
如何将YAML格式的输入文件从一个参数传递到一个通道样本作为列表?如果有任何NextFlow功能或简单的解决方案来使通道样本工作,我将不胜感激!。--INPUT_LIST S3://my-Bucket
我有很多样本经历了一个有时会失败的过程(确定性地)。在这种情况下,我希望失败的进程停止,但所有其他样本仍然独立提交和处理。 如果我理解正确,设置 errorStrategy 'ignore' 将在失败
我正在重新设计一个工作流,基本上它从一个产生多个其他进程的进程开始。最初我在开始我的工作流程之前有变量,所以我制作了这些变量的元组,然后将它作为输入传递给流程。该进程获取每个值,并为元组中的每个值生成
我有一个 nextflow 脚本,它在单个 vcf 文件上运行几个进程。文件名为“bos_taurus.vcf”,位于目录/input_files/bos_taurus.vcf 中。目录 input_
我正在尝试在 Nextflow 管道中运行 Rscript。这个 Rscript 有一个包“ggolot2”。 我有这个错误: Error in library(ggplot2): there is
我有一个 Nextflow 进程,它使用 bash 脚本 ( check_bam.sh ) 生成文本文件。该文本文件内容的唯一选项是 0 或任何其他数字。我想提取该 0 或其他值并将其保存到 Next
我们正在尝试在默认的 k8s 命名空间上使用 nextflow,我们使用的命名空间是 nextflownamespace .我们已经创建了 PVC 并确保默认服务帐户具有管理员角色绑定(bind)。我
我有以下 nextflow 脚本: echo true
我正在 NextFlow 上执行分散-聚集操作。 它看起来像下面这样: reads = PATH+"test_1.fq" outdir = "results" split_read_ch = chan
当我使用 nextflow 提交作业时,其中一个进程失败,文件已损坏。显然我可以从工作列表中删除该文件,但我不希望将来在我扩大它时发生这种情况。默认情况下,这会停止所有其他进程 (9) 的运行,并且
如何在 nextflow 中执行 try catch? 我目前正在编写一个管道,我正在执行的 bash 命令可能会在某些条件下以退出代码 1 退出。这使我的管道陷入停顿。我现在想使用 try catc
我正在尝试运行此 pipeline ,它使用 Nextflow 实现并使用 Docker 容器。不幸的是,我不能使用 Docker,因为它不兼容 HPC(没有 sudo),所以我使用 Singular
我想要一个管道,它可以从一个名为“Input”的文件夹中接受这样的输入。文件的格式类似于“gene_KOs1.tsv gene_KOs2.tsv Mutations1.tsv Mutations2.t
我正在尝试制作一个使用 python 脚本的 Nextflow 脚本。我的 python 脚本导入了许多模块,但在 Nextflow python3 中找不到 7 个模块中的两个(cv2 和 matp
Nextflow 允许高效地制作复杂的管道。有些人只能通过视觉来理解事物,因此制作良好的图形表示很重要。在 nextflow 中这样做的方法是通过 -with-dag 命令: nextflow run
我正在尝试使用 nextflow 和 docker 运行 python 脚本。我正在使用 dockerfile(如下所示)来创建 docker 镜像。 Nextflow 脚本有一个简单的 python
我是一名优秀的程序员,十分优秀!