| | 29 | The Nextflow command line tool has been installed on the WI slurm cluster: /nfs/BaRC_Public/apps/nextflow/nextflow |
| | 30 | |
| | 31 | The current version is nextflow version 24.04.4.5917. |
| | 32 | |
| | 33 | The main purpose of the Nextflow CLI is to run Nextflow pipelines with the run command. Nextflow can execute a local script (e.g. ./main.nf) or a remote project (e.g. github.com/foo/bar). |
| | 34 | |
| | 35 | To launch the execution of a pipeline project, hosted in a remote code repository, you simply need to specify its qualified name or the repository URL after the run command. The qualified name is formed by two parts: the owner name and the repository name separated by a / character. |
| | 36 | |
| | 37 | In other words if a Nextflow project is hosted, for example, in a GitHub repository at the address http://github.com/foo/bar, it can be executed by entering the following command in your shell terminal: |
| | 38 | |
| | 39 | |
| | 40 | {{{ |
| | 41 | nextflow run foo/bar |
| | 42 | }}} |
| | 43 | |
| | 44 | or using the project URL: |
| | 45 | |
| | 46 | |
| | 47 | {{{ |
| | 48 | nextflow run http://github.com/foo/bar |
| | 49 | }}} |
| | 50 | |
| | 51 | If the project is found, it will be automatically downloaded to the Nextflow home directory ($HOME/.nextflow by default) and cached for subsequent runs. |
| | 52 | |
| | 53 | Try this simple example by running the following command: |
| | 54 | |
| | 55 | |
| | 56 | {{{ |
| | 57 | nextflow run nextflow-io/hello |
| | 58 | }}} |
| | 59 | |
| | 60 | |
| | 61 | This is a simple script showing the basic 'Hello World!' example for the Nextflow framework. It will download a trivial example from the repository published at http://github.com/nextflow-io/hello and execute it on your computer. |