Skip to main content

Command-line tool to run Nextflow pipelines in the cloud

Project description

nflaunch

Python Version PyPI version License: Apache-2.0

nflaunch is a command-line tool designed to simplify the launching of Nextflow pipelines on cloud batch services. It abstracts complex cloud configurations into a unified interface, currently supporting Google Cloud Batch.

This tool is under active development and intended for users with experience managing cloud resources and Nextflow pipelines. Ensure you understand the configurations and implications of job submissions before using it in production environments.


Table of Contents


Key Features

  • GCP Batch Support - Automated volume mounting and job execution on Google Cloud
  • Dry-Run Mode - Validate job configurations before submission
  • Plugin System - Extensible architecture for pipeline-specific enhancements
  • Local & Remote Pipelines - Support for both published (e.g. nf-core public pipelines) and local pipeline directories
  • Resume Capability - Resume failed pipeline runs

Quick Start

Prerequisites

Installation

# Recommended: Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install nflaunch
pip install nflaunch

Optional: Add .venv/bin to your PATH to use nflaunch without activating the virtual environment:

# Bash (for zsh use ~/.zshrc)
echo "export PATH=\"$(pwd)/.venv/bin:\$PATH\"" >> ~/.bashrc && source ~/.bashrc

Verify installation:

nflaunch --help

For detailed installation instructions, see the Installation Guide.

GCP Setup

Configure required permissions and authentication:

# Authenticate
gcloud auth login
gcloud auth application-default login

Enable the following APIs in your GCP project:

  • Google Cloud Batch API (batch.googleapis.com)
  • Google Cloud Storage API (storage.googleapis.com)

For complete GCP setup instructions, see the GCP Setup Guide.

Documentation

Comprehensive documentation is available in the docs/ directory:

Getting Started

Reference

Usage Example

Run the nf-core/demo pipeline with dry-run validation:

nflaunch \
  --base-bucket my-nextflow-bucket \
  --pipeline-name nf-core/demo \
  --pipeline-version 1.0.2 \
  --params-file examples/params.yaml \
  --samplesheet examples/samplesheet.csv \
  --config-file examples/resources.config \
  --project-id my-gcp-project \
  --region us-central1 \
  --service-account-email sa@my-project.iam.gserviceaccount.com \
  --network default \
  --subnetwork default \
  --labels '{"env": "test", "tool": "nflaunch"}' \
  --dry-run

Remove --dry-run to submit the job.

For more examples and detailed usage instructions, see the Quickstart Guide.

License

This project is distributed under the terms of the Apache License 2.0.


Documentation: docs/ | Examples: examples/ | Changelog: CHANGELOG.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nflaunch-0.1.1.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nflaunch-0.1.1-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

File details

Details for the file nflaunch-0.1.1.tar.gz.

File metadata

  • Download URL: nflaunch-0.1.1.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nflaunch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b4274095aaf4501bc55cfc04d5af999dc86c3679a03a49efd12e4a3df927fb4f
MD5 2d7b535a645f43b5427073b2b04d2683
BLAKE2b-256 809e674e0ea8dc50c77c90c58164bccf576ae9e03b19629f518e62c6bdc02cea

See more details on using hashes here.

Provenance

The following attestation bundles were made for nflaunch-0.1.1.tar.gz:

Publisher: release.yaml on rodjc/nflaunch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nflaunch-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nflaunch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 39.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nflaunch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d77a5bed7edfd444788b044f00c764eac69897b51f87dec2b902f56d6a784262
MD5 9a743a9884cc672ab5ddb223cf3c301b
BLAKE2b-256 e90b1590f1bfaab7493a55f9a57e5ab865ae761a3e05661d22f5098882d4ba27

See more details on using hashes here.

Provenance

The following attestation bundles were made for nflaunch-0.1.1-py3-none-any.whl:

Publisher: release.yaml on rodjc/nflaunch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page