conda
The conda directive defines the set of Conda packages required by each task.
Usage
For example:
process hello {
conda 'bwa=0.7.15'
script:
"""
your_command --here
"""
}
Nextflow automatically creates an environment for each unique set of Conda packages.
Specify the channel for a package using the standard Conda notation, for example, bioconda::bwa=0.7.15. Specify multiple packages by separating them with a space, for example, bwa=0.7.15 fastqc=0.11.5.
The conda directive also accepts a Conda environment file path or the path of an existing Conda environment. See Conda for more information.