Skip to main content

spack

The spack directive defines the set of Spack packages required by each task. For example:

process hello {
spack 'bwa@0.7.15'

script:
"""
your_command --here
"""
}

Nextflow automatically creates a Spack environment for each unique set of packages.

Multiple packages can be specified separating them with a blank space, e.g. bwa@0.7.15 fastqc@0.11.5.

The spack directive also accepts a Spack environment file path or the path of an existing Spack environment. See Spack for more information.