Nextflow is a DSL workflow manager (https://www.nextflow.io/).
The nf-core projects hosts community curated Nextflow pipelines.
-
Install
nextflow
by following the instructions here -
Optionally move the
nextflow
directory to a directory in your path i.e.echo $PATH
and thenmv nextflow usr/bin
-
Navigate to the directory where you saved
example.nf
-
Run the pipeline with the following command:
nextflow run nextflow/example.nf \ --left $PWD/test_data/reads_1.fq.gz \ --right $PWD/test_data/reads_2.fq.gz \ --ref $PWD/test_data/transcriptome.fa
-
Enable the use Docker containers adding the following option to the above command line:
-with-docker quay.io/nextflow/rnaseq-nf:v1.0
Note: input files requires the use of absolute paths
This pipeline is a minimal example of using Nextflow. We welcome contributions to the documentation and workflow, please create an issue or submit a pull request!
Di Tommaso, P., Chatzou, M., Floden, E. W., Barja, P. P., Palumbo, E., & Notredame, C. (2017). Nextflow enables reproducible computational workflows. Nature Biotechnology, 35(4), 316–319. doi:10.1038/nbt.3820