Nextflow Quickstart Tutorial

Objective

The goal of this tutorial is to show you the entire procedure of bringing a Nextflow application to the Seven Bridges Platform and running the application at scale using test data that is already available on the Platform. We will be using the nf-code/rnaseq pipeline from the nf-core GitHub repository of curated pipelines built using Nextflow.

Prerequisites

An account on the Seven Bridges Platform.

Procedure

The procedure of uploading and running a Nextflow app consists of the following steps:

  1. Download the rnaseq pipeline from the nf-core GitHub repository.
  2. Create a project on the Platform.
  3. Upload the app to the Platform.
  4. Verify that the app is visible and can be run on the Platform.

Download the rnaseq pipeline

This step takes place in your browser.

We will be using the nf-code/rnaseq pipeline to demonstrate how it is prepared, customized and pushed to the Platform for execution. To download the app:

  1. Navigate to https://github.com/nf-core/rnaseq in your browser.
  2. Click the Code dropdown and select "Download ZIP". An archive containing the Nextflow pipeline is downloaded to your local machine.
  3. Navigate to your local download location and unzip the downloaded package into a folder named rnaseq-master. The folder contains the entire set of app-related files, the most important ones being:
    • main.nf
    • nextflow.config
    • nextflow_schema.json

Create a project on the Platform

This step takes place on the Platform.

For this tutorial, create a dedicated project named Nextflow Project on the Platform by following the steps below:

  1. Log in to the Platform.
  2. Click Projects in the top navigation bar and select "Create a project".
  3. Name your project "Nextflow Project".
  4. Keep the default values for all other project settings.
  5. Click Create. Your new project is now created.

Upload the app to the Platform

To add the rnaseq app to the Platform through the visual interface, follow the steps below:

  1. Navigate to Nextflow Project on the Platform.

  2. Open the Apps tab.

  3. Click Create app. This opens the new app creation dialog.

  4. Under Select language, click Nextflow. The code package upload field is displayed.

  5. Browse or drag and drop the code package. The Name field is automatically populated based on your code package name.

  6. Click Create. This starts the process of uploading and adding the app to the Platform. For the process to complete successfully, keep the window open until upload is completed.

Once everything is completed, you are taken to your app details. To test your app, click Run in the top-right corner. This creates a draft task where you can set your app inputs and run it.

This concludes the Nextflow Quickstart Tutorial. After successfully completing it, you should be able to create a Nextflow app for use on the Platform.

To make changes to the UI representation of the Nextflow applications on the platform, as well as modify inputs, outputs, application settings and more, visit the [Add nextflow Apps Through the Command Line](https://docs.sevenbridges.com/docs/add-nextflow-apps-through-the-command-line-interface-cli) page.