Nextflow in environments
The default Nextflow on Alma is only version 20 and this is unlikely to be sufficient for recent pipelines.
Create an environment for your Nextflow pipelines using conda or mamba, or a python virtual environment.
If you load the mamba environment, you will have the correct java version for Nextflow. If you use a python virtual environment, you will need to load the correct java version yourself.
When using mamba or conda (they are interchangeable, be consistent - mamba is preferred), make sure you have first followed the recommended way to ensure they are correctly initisalised on Alma: mamba installation guide.
The most recent Nextflow version in mamba as of May 2024 is nextflow version 24.04.2.5914