I'm not sure if it's appropriate to post this issue here since it's an issue with the VADR Biocontainer image created from the Bioconda recipe. This issue only arises when running VADR using the Biocontainers Apptainer/Singularity image with Nextflow. There's no issue when running VADR with Nextflow using Conda/Mamba or Docker.
Pulling the VADR Biocontainers Docker image and creating the Apptainer image:
Apptainer exec does not have the vadr module in the PERL5LIB env var:
$ apptainer exec quay.io-biocontainers-vadr-1.6.4--pl5321h031d066_0.img v-annotate.pl --help
Can't locate vadr.pm in @INC (you may need to install the vadr module) (@INC contains: /usr/local/lib/perl5/5.32/site_perl /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/vendor_perl /usr/local/lib/perl5/vendor_perl /usr/local/lib/perl5/5.32/core_perl /usr/local/lib/perl5/core_perl .) at /usr/local/bin/v-annotate.pl line 13.
Apptainer run works fine since the activation script that sets the PERL5LIB path is sourced:
Hello,
I'm not sure if it's appropriate to post this issue here since it's an issue with the VADR Biocontainer image created from the Bioconda recipe. This issue only arises when running VADR using the Biocontainers Apptainer/Singularity image with Nextflow. There's no issue when running VADR with Nextflow using Conda/Mamba or Docker.
Pulling the VADR Biocontainers Docker image and creating the Apptainer image:
Apptainer
exec
does not have thevadr
module in thePERL5LIB
env var:Apptainer
run
works fine since the activation script that sets thePERL5LIB
path is sourced:With
$ apptainer exec $IMG bash
:With
$ apptainer run $IMG
:The VADR Bioconda
build.sh
script creates an activation script:https://github.com/bioconda/bioconda-recipes/blob/dc96225686dbc772fc733265d51a934ac0f050f2/recipes/vadr/build.sh#L57
But it looks like the script is only sourced when running with Conda, Docker or
apptainer run
.Maybe a wrapper script that explicitly sets the necessary env vars would help?