NextFlow and Apptainer

212 views
Skip to first unread message

Elisabeth Ortega

unread,
May 27, 2022, 6:30:24 AM5/27/22
to Nextflow
Hi all,

I'm trying to run a simple pipeline using an apptainer in a local environment. To do so, I used two different approaches:
- Approach A: running "apptainer exec blablabla" in the pipeline (nf file).
- Approach B: writing the command to execute in the nf file and the needed environment vars,  and using -with-singularity option.

The Approach A works as expected (getting the same result executing it in nextflow and in the local machine direclty) but the approach B fails in a non-sense step (is asking for a file that is not generated in this run and in the "working" approach).

More extra information that may help or not: I'm trying to execute an OpenFoam workflow in two steps (long story...). 

My question here is if I'm missing something in the usage of singularity in nextflow. I thought that the option -with-singularity is just adding "apptainer/singuilarity exec blabla.sif" at the beggining of the .command.sh script.

Thanks in advance for your help here!

Elisabeth

Paolo Di Tommaso

unread,
May 27, 2022, 9:55:17 AM5/27/22
to next...@googlegroups.com
Nextflow does not have a built-in support for Apptainer.  

I'm wondering if Apptainer command line is compatible with Singularity. If that's the case you can just create a simlink "singulairty" -> "apptainer" and it should work 


p

--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nextflow/b1007a94-fbfb-43c5-bd76-7c5e3e558442n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages