Get started
Wave is versatile and you can leverage it in your Nextflow pipelines in several ways. The following guides describe how to quickly get started with Seqera Containers and Nextflow, Nextflow and Wave integration, and the Wave CLI.
Nextflow and Seqera Containers
You can provision containers that include Conda packages through Seqera Containers and use them directly in your Nextflow pipelines.
Prerequisites
- You have either Docker Desktop or Podman installed locally.
- You have Nextflow 23.10.x or newer installed locally.
- Use Singularity 4.x or newer to run the Singularity containers.
In this guide, you'll request a containerized Conda package from Seqera Containers.
Request a Conda package as a Seqera Container
- Open Seqera Containers in a browser.
- In the search box, enter
samtools
. - In the search results, select Add in the
bioconda::samtools
result, and then Get Container to initiate the container build. - From the Fetching container modal, copy the the durable container image URI that Seqera Containers provides.
- Optional: Select View build details to watch Seqera Containers build the requested container in real time.
Create a Nextflow pipeline that uses the container
Nextflow can use the container that Seqera Containers built in the previous section. Use the container URI from Seqera Containers in the container
directive.
-
In a terminal window, create a new directory for the Nextflow pipeline.
-
Create a
nextflow.config
file with the following contents:docker {
enabled = true
} -
Create a
main.nf
file with the following contents:process SAMTOOLS {
container '<container_uri>'
debug true
"""
samtools --version-only
"""
}
workflow {
SAMTOOLS()
}Substitute
<container_uri>
for the container URI that you received from Seqera Containers in the previous section. e.g.community.wave.seqera.io/library/samtools:1.20--b5dfbd93de237464
for linux/amd64.community.wave.seqera.io/library/samtools:1.20--497854c5df637867
for linux/arm64.
Run the Nextflow pipeline
To confirm that the samtools
command is available from your pipeline, run the following command:
nextflow run main.nf
The output from a successful execution is displayed in the following example:
N E X T F L O W ~ version 24.04.4
Launching `samtools.nf` [furious_carlsson] DSL2 - revision: 04817f962f
executor > local (1)
[2f/d2ccc7] process > SAMTOOLS [100%] 1 of 1 ✔
1.20+htslib-1.20
Nextflow
You can provision containers with Wave directly from your Nextflow pipelines.
Prerequisites
- You have an account with a container registry, such as DockerHub, and an access token that provides write access to your container repository.
- You have a Seqera Cloud or Platform account, to store your container registry credentials for Wave to use.
- You have either Docker Desktop or Podman installed locally.
- You have Nextflow 23.10.x or newer installed locally.
In this guide, you'll build a container from a Nextflow module and freeze that package in your private container repository.
Create your Seqera access token
-
Log in to Seqera.
-
From your personal workspace: Go to the user menu and select Settings > Your tokens.
-
Select Add token.
-
Enter a unique name for your token, then select Add.
-
Copy and store your token securely.
cautionThe access token is displayed only once. Save the token value before closing the Personal Access Token window.
-
In a terminal window, assign your access token to the
TOWER_ACCESS_TOKEN
environment variable:export TOWER_ACCESS_TOKEN=<token_token>