Skip to content
Example Nextflow pipelines and programming techniques
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Groovy-code add Groovy code example Apr 17, 2018
LaTeX-aggregate
R-Python
Singularity
aggregate-db-report
async
batch-processing add batch processing example May 8, 2018
bed-split fix integer division Apr 10, 2019
branching add branching example May 2, 2018
choice remove dummy processes May 18, 2018
collectFile
combinator Update main.nf Jan 9, 2019
conditional-execution
cross-samples
custom-email-output
default-params
dynamic-queue
filter-channel
get_outputfile add get_outputfile demo Jan 15, 2019
join-pairs update Makefiles and add Python arg demo Apr 4, 2018
make-files
output-files
output-variable-name
parse-JSON
parse-samplesheet Removed unnecessary curly brackets Apr 10, 2018
print-samples
profiles-Docker-module update READMEs Apr 30, 2018
publishDir-resume update publishdir Mar 4, 2019
reporting update READMEs Apr 30, 2018
slurm-example
suffix-map
variable-input-files add variable input file example Feb 14, 2019
.gitignore
LICENSE
README.md Update README.md Feb 20, 2019

README.md

nextflow-demos

Demonstrations of various programming techniques for use inside Nextflow pipelines. This repository is meant to be a supplement to the official Nextflow documentation (links below).

Install

Clone this repo:

git clone git@github.com:stevekm/nextflow-demos.git
cd nextflow-demos

Contents

Each subdirectory contains files to run sample Nextflow pipelines.

Files

  • Makefile: shortcut to commands to install and clean up Nextflow and its pipeline output

  • main.nf: Nextflow pipeline file

  • nextflow.config: config file for Nextflow pipeline (optional)

Sample Pipeline Directories

(listed in recommended order for new users)

  • print-samples: Prints samples from a list to the terminal

  • make-files: Creates files based on sample ID inputs

  • output-files: Same as make-files but includes custom file output options

  • async: demonstration of asynchronous process execution

  • custom-email-output: Creates files from sample ID's then sends the user an email with a pipeline summary and files attached

  • output-variable-name: Same as output-files but includes inline variable definition of output file names

  • R-Python: methods for using other scripting languages inside the Nextflow pipeline

  • join-pairs: joining pairs of samples based on ID across input channels

  • parse-samplesheet: parsing of a samplesheet as input for Nextflow pipeline

  • reporting: execution of Nextflow pipeline with reporting and config features enabled.

  • profiles-Docker-module: usage of 'profiles' to change process execution behavior to use Docker or environment modules

  • Groovy-code: example of using inline Groovy code inside the Nextflow pipeline

Usage

You can use the following commands inside the provided demo subdirs to run the demo pipelines.

Install Nextflow

# in a subdir in this repo
make

Run pipeline

./nextflow run main.nf

or

make run

Cleanup

make clean

Resources

Examples

You can’t perform that action at this time.