LogoLogo
  • Overview
  • publisher
    • Introduction
    • Getting Started
      • Logging in to Publisher
    • Data Sources
      • Connecting a Data Source
      • Managing a Data Source
      • Connectors
        • AWS S3 Permissions
        • Connecting to AWS S3 Storage
        • Google Cloud Storage (GCS) Permissions
        • Connecting to Google Cloud Storage
        • PostgreSQL Permissions
        • Connecting to PostgreSQL
        • PostgreSQL on Azure Permissions
        • Microsoft Azure Blob Storage Permissions
        • Connecting to Microsoft Azure Blob Storage
        • Connecting to HTTPS
        • Connecting to other sources via Trino
          • BigQuery
    • Collections
      • Creating a Collection
      • Sharing a Collection
      • Collection Filters
      • Editing Collection Metadata
      • Updating Collection Contents
    • Access Policies
      • Creating an Access Policy
      • Managing Access Policies
    • Questions
      • Adding Questions
      • Example Question
    • Settings
      • Viewing Current and Past Administrators
      • Adding an Administrator
      • Removing an Administrator
      • Setting Notification Preferences
  • Explorer
    • Introduction
    • Viewing a Collection
    • Browsing Collections
    • Asking Questions
    • Accessing a Private Collection
      • Requesting Access to a Private Collection
    • Filtering Data in Tables
      • Strings
      • Dates
      • Numbers
  • Workbench
    • Introduction
    • Getting Started
      • Logging into Workbench
      • Connecting an Engine
      • Finding or Importing a Workflow
      • Configuring Workflow Inputs
      • Running and Monitoring a Workflow
      • Locating Outputs
    • Engines
      • Adding and Updating an Engine
        • On AWS HealthOmics
        • On Microsoft Azure
        • On Google Cloud Platform
        • On Premises
      • Parameters
        • AWS HealthOmics
        • Google Cloud Platform
        • Microsoft Azure
        • On-Premises
        • Cromwell
        • Amazon Genomics CLI
    • Workflows
      • Finding Workflows
      • Adding a Workflow
      • Supported Languages
      • Repositories
        • Dockstore
    • Instruments
      • Getting Started with Instruments
      • Connecting a Storage Account
      • Using Sample Data in a Workflow
      • Running Workflows Using Samples
      • Family Based Analysis with Pedigree Information
      • Monitor the Workflow
      • CLI Reference
        • Instruments
        • Storage
        • Samples
        • OpenAPI Specification
    • Entities
    • Terminology
  • Passport
    • Introduction
    • Registering an Email Address for a Google Identity
  • Command Line Interface
    • Installation
    • Usage Examples
    • Working with JSON Data
    • Reference
      • workbench
        • runs submit
        • runs list
        • runs describe
        • runs cancel
        • runs delete
        • runs logs
        • runs tasks list
        • runs events list
        • engines list
        • engines describe
        • engines parameters list
        • engines parameters describe
        • engines health-checks list
        • workflows create
        • workflows list
        • workflows describe
        • workflows update
        • workflows delete
        • workflows versions create
        • workflows versions list
        • workflows versions describe
        • workflows versions files
        • workflows versions update
        • workflows versions delete
        • workflows versions defaults create
        • workflows versions defaults list
        • workflows versions defaults describe
        • workflows versions defaults update
        • workflows versions defaults delete
        • namespaces get-default
        • storage add
        • storage delete
        • storage describe
        • storage list
        • storage update
        • storage platforms add
        • storage platforms delete
        • storage platforms describe
        • storage platforms list
        • samples list
        • samples describe
        • samples files list
      • publisher
        • datasources list
  • Analysis
    • Python Library
    • Popular Environments
      • Cromwell
      • CWL Tool
      • Terra
      • Nextflow
      • DNAnexus
Powered by GitBook
On this page
  • Prerequisites
  • Getting Started
  • Getting the Example Workflow
  • Clone with Git
  • Installing Nextflow
  • Using cURL or direct from this link, and allow execution permission
  • Or Using Conda
  • Running the workflow
  • To run the workflow
  • Nextflow Tower

Was this helpful?

  1. Analysis
  2. Popular Environments

Nextflow

PreviousTerraNextDNAnexus

Last updated 3 months ago

Was this helpful?

© DNAstack. All rights reserved.

Nextflow provides a modern execution stack for bioinformatics, featuring a Groovy-based DSL with reactive streams. It supports multiple backends including Docker and runs on any POSIX-compatible system, with Windows support through .

Prerequisites

  • Java 8 or higher

  • Optional: cURL, ,

  • For Windows only:

Getting Started

The following software and workflow are required and will be downloaded, installed, and used as part of this tutorial:

Getting the Example Workflow

Clone with Git

git clone https://github.com/DNAstack/dnastack-client-library-worked-examples.git

It is assumed that all commands will be run from the root directory of this repository on your local machine. From the directory where you’ve downloaded the examples repository.

cd dnastack-client-library-worked-examples/

Installing Nextflow

curl -o nextflow -L https://get.nextflow.io # Or directly from web link

chmod +x nextflow

Or Using Conda

conda install -c bioconda nextflow

Running the workflow

To run the workflow

./nextflow run --config examples/nextflow/nextflow.config examples/nextflow/02_download_collection_files.nf

Output files can be found in the current directory.

Nextflow Tower

Nextflow Tower provides centralized monitoring and logging for your workflows. To enable Tower:

  1. Add the following to the configuration file nextflow.config. Replace with your specific access token.

docker.enabled = true
tower {
    enabled = true
    accessToken = '<YOUR TOKEN>'
}
  1. Find your access token in the user menu under "Your tokens"

  2. View workflow details in the "runs" section

Or and Unzip

Download and install by one of the following methods.

Using cURL or , and allow execution permission

WSL
Docker
git
Conda
WSL
Nextflow
02_download_collection_files.nf
nextflow.config
Download
Nextflow
direct from this link