Closed XingzhengLee closed 5 months ago
This looks like an error in snakemake itself, the command that's failing isn't actually in verkko. The traceback says:
File "/home/lixingzheng/miniconda3/envs/verkko/lib/python3.9/site-packages/snakemake/executors/__init__.py", line 2692, in run_wrapper
raise RuleException(
Command 'set -euo pipefail;
I expect any shell snakemake command would have failed, this just happened to be the first to run. When snakemake fails itself, it doesn't generate the corresponding shell script (or removes it upon failure) which is why you don't have the buildScript.sh in your folder. This is a bashism and I suspect your default shell is dash or something else (if you're on Ubuntu). If you make your default shell bash before running verkko it should work, you might also be able to change the verkko script from
echo > ${outd}/snakemake.sh "#!/bin/sh"
to
echo > ${outd}/snakemake.sh "#!/usr/bin/env bash"
which will always force snakemake to run in bash.
Thank you for your detailed guidance! However, it seems that the proposed solution hasn't resolved the issue.
Regarding the system information:
Kernel version:
Linux version 3.10.0-1160.105.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Thu Dec 7 15:39:45 UTC 2023
Default shell:
lrwxrwxrwx. 1 root root 4 7月 13 18:05 /bin/sh -> bash
If resolving this particular Snakemake issue turns out to be intricate or challenging, I'm inclined to explore an alternative approach. Is it possible to circumvent the workflow and manually execute the verkko steps one by one? If this is feasible, I'd greatly appreciate any guidance on how to proceed with the manual execution of verkko's steps.
While I understand that solving this directly through Snakemake would save considerable time, having a manual step-by-step process as a backup could provide valuable insights and potentially expedite the resolution. Your assistance in this matter is truly appreciated!
It's not feasible to run the pipeline w/o snakemake. Something in your snakemake/conda environment is broken since pipefail should be a supported option yet is failing. I would suggest trying a clean conda environment or installing snakemake/verkko locally w/o conda with its dependencies.
It appears that the issue might stem from a compatibility mismatch between the server I'm currently using and Snakemake. I attempted to build verkko from the source, yet encountered the same error. Intriguingly, when I ran the pipeline using my personal laptop with the sample data, it progressed without any errors. However, given the limitations of my laptop's resources, it might not be sufficient for handling real data. As a result, I'm actively seeking an alternative server that might better accommodate the computational requirements.
Thank you sincerely for your patience and invaluable assistance throughout this process!
Hello,
I'm currently experiencing an issue during the initial phase of the workflow (sqStoreCreate) while running a local test.
Script:
verkko -d asm --hifi ./hifi.fastq.gz --nano ./ont.fastq.gz
snakemake.log
The issue I'm encountering is that despite no problems executing the buildStore.sh script manually, within the workflow, the file buildStore.sh wasn't generated, and the associated buildStore.err file remained empty. This occurred within the Snakemake workflow, and I'm relatively new to this environment. Any guidance or suggestions on how to resolve this issue would be greatly appreciated.
PS:
Here is a snippet of the log information I received when executing the snakemake.sh script with Snakemake's debugging flags (--verbose).
Thank you for your assistance.