Open nascimento-jean opened 2 weeks ago
Thank you @nascimento-jean for creating this issue! This seems to be an issue with how the VADR Bioconda recipe is configured to set the necessary shell environment variables for running VADR and how Nextflow executes commands when running with Singularity/Apptainer. I've let the developers of VADR know there's an issue (see https://github.com/ncbi/vadr/issues/87). This issue might affect other Perl tools in Bioconda when trying to use them in Nextflow pipelines with Singularity.
You could try running the workflow with -profile docker
or -profile conda
to use Docker or Conda instead of Singularity.
Another workaround is to use the staph-b/vadr 1.6.3-hav-flu2 container instead of the Bioconda/Biocontainers one by supplying Nextflow with a custom config file:
vadr-custom.config
:
process {
withName '.*VADR.*' {
container 'staphb/vadr:1.6.3-hav-flu2'
}
}
Re-run your Nextflow command with -c vadr-custom.config
:
nextflow run CFIA-NCFAD/nf-flu \
-c vadr-custom.config \
--input lacenal_flu.csv \
--platform illumina \
-profile singularity \
--outdir ./FLU_Lacen/NF-Flu_results \
--low_coverage 20 \
--max_top_blastn 5 \
--max_cpus 15 --max_memory 64.GB --max_time 6.h \
-resume
Hope that helps while we try to find a permanent solution!
Also, it's great to hear that the pipeline can be used on Windows with WSL!
Is there an existing issue for this?
Description of the Bug/Issue
I am trying to run the pipeline to analyze my data; however, I am facing difficulties in executing the NF_FLU:ILLUMINA process.
What could be causing this error? How can I solve this problem? I am running the pipeline on WSL, Ubuntu 22.04.
Nextflow command-line
Error Message
Workflow Version
Version 3.4.1
Nextflow Executor
local
Nextflow Version
version 24.04.4
Java Version
openjdk 21-internal 2023-09-19 OpenJDK Runtime Environment (build 21-internal-adhoc.conda.src) OpenJDK 64-Bit Server VM (build 21-internal-adhoc.conda.src, mixed mode, sharing)
Hardware
Desktop
Operating System (OS)
Ubuntu LTS 22.04 - WSL
Conda/Container Engine
Singularity
Additional context
No response