Open ayoraind opened 4 days ago
Hi @ayoraind,
This seems like a rather unusual issue. I attempted to replicate the problem you described, but couldn’t reproduce it.
I ran the following command in the directory /home/chenhs/.nextflow/assets/CSU-KangHu/HiTE
:
nextflow run main.nf -profile docker --genome demo/genome.fa --outdir test_out
The program ran successfully without any issues.
Hi @CSU-KangHu,
Thank you for your response. A well-respected nf-core maintainer looked through the code, and he asked if your executable scripts could be transferred into the bin/ folder so that the module/ folder would only contain actual nextflow modules. This would help to fix the portability issues I am facing.
Hi @ayoraind,
From your description, it seems you suspect that the error is due to Nextflow being unable to locate files within the HiTE/module
path, though it can access files in HiTE/bin
. However, based on the error message, it appears that Nextflow cannot find the absolute path /home/gitpod/.nextflow/assets/CSU-KangHu/HiTE/module/split_genome_chunks.py
, even though you've confirmed that this file does exist.
Since the Python scripts in the module
folder are called from various other locations, I’d prefer not to change their paths unless absolutely necessary.
For your specific case, since you only need to modify the Nextflow portion of the code, perhaps moving the module
folder to the bin
directory and adjusting line 115 in main.nf
(ch_module = "${projectDir}/module"
) might achieve your objective.
Hi @ayoraind, I consulted with a colleague, and I may rewrite the Nextflow script, which could potentially solve your issue. Once I have it completed, I’ll let you know.
Thank you @CSU-KangHu, I look forward to the updated script.
Hi @ayoraind,
I have made some modifications to the HiTE code by adding the module
and tools
directories to the Docker system environment variables, and I have also granted executable permissions to the scripts. Previously, you needed to run the script with python3 /home/gitpod/.nextflow/assets/CSU-KangHu/HiTE/module/split_genome_chunks.py
, but now you can simply run split_genome_chunks.py
directly, which should resolve the issue you're facing.
I have extracted the Nextflow-related code and created a new project called HiTE-Nextflow (https://github.com/CSU-KangHu/HiTE-Nextflow), which includes only the main.nf
, config files, and demo data from the original HiTE code, making it more lightweight. Please follow the updated tutorial to download the latest HiTE-Nextflow code and Docker image. I believe this should address the issue you're encountering.
If you run into any further issues during usage, feel free to contact me.
Best regards.
As per issue #25, for some reason, the pipeline does not seem to work when integrated into the Nextflow pipeline, due to the absence of some python scripts. However, when I checked the directory containing these scripts (
/home/gitpod/.nextflow/assets/CSU-KangHu/HiTE/module/
), these files exist. Based on your suggestion on issue #25, I added execute permissions but still got the same error message. Kindly find more details belowIs this error still due to permission issues? Is it also possible that the scripts already have execute privileges to avoid weird errors?