You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.md
+9-17Lines changed: 9 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Nextflow provides a robust command line interface (CLI) for the management and e
7
7
Simply run `nextflow` with no options or `nextflow -h` to see the list of available top-level options and commands. See {ref}`cli-reference` for the full list of subcommands with examples.
8
8
9
9
:::{note}
10
-
Nextflow options use a single dash prefix, e.g. `-foo`. Do not confuse with double dash notation, e.g. `--foo`, which is instead used for {ref}`Pipeline parameters <cli-params>`.
10
+
Nextflow options use a single dash prefix, e.g. `-resume`. Do not confuse with double dash notation, e.g. `--resume`, which is instead used for {ref}`Pipeline parameters <cli-params>`.
11
11
:::
12
12
13
13
## Basic usage
@@ -166,22 +166,22 @@ The `-v` option prints out information about Nextflow, such as the version and b
166
166
167
167
## Running pipelines
168
168
169
-
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`).
169
+
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/nextflow-io/hello`).
170
170
171
171
### Launching a remote project
172
172
173
173
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.
174
174
175
-
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:
175
+
If a Nextflow project is hosted on GitHub, for example`http://github.com/nextflow-io/hello`, it can be executed by entering the following command in your shell terminal:
176
176
177
177
```bash
178
-
nextflow run foo/bar
178
+
nextflow run nextflow-io/hello
179
179
```
180
180
181
181
or using the project URL:
182
182
183
183
```bash
184
-
nextflow run http://github.com/foo/bar
184
+
nextflow run http://github.com/nextflow-io/hello
185
185
```
186
186
187
187
If the project is found, it will be automatically downloaded to the Nextflow home directory (`$HOME/.nextflow` by default) and cached for subsequent runs.
@@ -190,14 +190,6 @@ If the project is found, it will be automatically downloaded to the Nextflow hom
190
190
You must use the `-hub` option to specify the hosting service if your project is hosted on a service other than GitHub, e.g. `-hub bitbucket`. However, the `-hub` option is not required if you use the project URL.
191
191
:::
192
192
193
-
Try this feature by running the following command:
194
-
195
-
```bash
196
-
nextflow run nextflow-io/hello
197
-
```
198
-
199
-
It will download a trivial example from the repository published at [http://github.com/nextflow-io/hello](http://github.com/nextflow-io/hello) and execute it on your computer.
200
-
201
193
If the `owner` is omitted, Nextflow will search your cached pipelines for a pipeline that matches the name specified. If no pipeline is found, Nextflow will try to download it using the `organization` name defined by the `NXF_ORG` environment variable (`nextflow-io` by default).
202
194
203
195
:::{tip}
@@ -255,7 +247,7 @@ Parameters that are specified on the command line without a value are set to `tr
255
247
:::
256
248
257
249
:::{note}
258
-
Parameters that are specified on the command line in kebab case (e.g., `--foo-bar`) are automatically converted to camel case (e.g., `--fooBar`). Because of this, a parameter defined as `fooBar` in the pipeline script can be specified on the command line as `--fooBar` or `--foo-bar`.
250
+
Parameters that are specified on the command line in kebab case (e.g., `--alpha-beta`) are automatically converted to camel case (e.g., `--alphaBeta`). Because of this, a parameter defined as `alphaBeta` in the pipeline script can be specified on the command line as `--alphaBeta` or `--alpha-beta`.
259
251
:::
260
252
261
253
:::{warning}
@@ -275,22 +267,22 @@ $ nextflow run main.nf -params-file pipeline_params.yml
275
267
The `-params-file` option loads parameters for your Nextflow pipeline from a JSON or YAML file. Parameters defined in the file are equivalent to specifying them directly on the command line. For example, instead of specifying parameters on the command line:
Copy file name to clipboardExpand all lines: docs/conda.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Alternatively, it can be specified by setting the variable `NXF_CONDA_ENABLED=tr
46
46
Conda package names can specified using the `conda` directive. Multiple package names can be specified by separating them with a blank space. For example:
47
47
48
48
```nextflow
49
-
process foo {
49
+
process hello {
50
50
conda 'bwa samtools multiqc'
51
51
52
52
script:
@@ -82,7 +82,7 @@ Read the Conda documentation for more details about how to create [environment f
82
82
The path of an environment file can be specified using the `conda` directive:
83
83
84
84
```nextflow
85
-
process foo {
85
+
process hello {
86
86
conda '/some/path/my-env.yaml'
87
87
88
88
script:
@@ -174,7 +174,7 @@ Conda lock files must be a text file with the `.txt` extension.
174
174
If you already have a local Conda environment, you can use it in your workflow specifying the installation directory of such environment by using the `conda` directive:
Copy file name to clipboardExpand all lines: docs/config.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ process.executor = 'sge'
84
84
process.queue = 'long'
85
85
process.memory = '10G'
86
86
87
-
includeConfig 'path/foo.config'
87
+
includeConfig 'path/extra.config'
88
88
```
89
89
90
90
Relative paths are resolved against the location of the including file.
@@ -185,7 +185,7 @@ process {
185
185
186
186
The `withName` selector applies both to processes defined with the same name and processes included under the same alias. For example, `withName: hello` will apply to any process originally defined as `hello`, as well as any process included under the alias `hello`.
187
187
188
-
Furthermore, selectors for the alias of an included process take priority over selectors for the original name of the process. For example, given a process defined as `foo` and included as `bar`, the selectors `withName: foo` and `withName: bar` will both be applied to the process, with the second selector taking priority over the first.
188
+
Furthermore, selectors for the alias of an included process take priority over selectors for the original name of the process. For example, given a process defined as `hello` and included as `sayHello`, the selectors `withName: hello` and `withName: sayHello` will both be applied to the process, with the second selector taking priority over the first.
189
189
190
190
:::{tip}
191
191
Label and process names do not need to be enclosed with quotes, provided the name does not include special characters (`-`, `!`, etc) and is not a keyword or a built-in type identifier. When in doubt, you can enclose the label name or process name with single or double quotes.
@@ -199,26 +199,26 @@ Both label and process name selectors allow the use of a regular expression in o
199
199
200
200
```groovy
201
201
process {
202
-
withLabel: 'foo|bar' {
202
+
withLabel: 'hello|bye' {
203
203
cpus = 2
204
204
memory = 4.GB
205
205
}
206
206
}
207
207
```
208
208
209
-
The above configuration snippet requests 2 cpus and 4 GB of memory for processes labeled as `foo` or `bar`.
209
+
The above configuration snippet requests 2 cpus and 4 GB of memory for processes labeled as `hello` or `bye`.
210
210
211
211
A process selector can be negated prefixing it with the special character `!`. For example:
212
212
213
213
```groovy
214
214
process {
215
-
withLabel: 'foo' { cpus = 2 }
216
-
withLabel: '!foo' { cpus = 4 }
215
+
withLabel: 'hello' { cpus = 2 }
216
+
withLabel: '!hello' { cpus = 4 }
217
217
withName: '!align.*' { queue = 'long' }
218
218
}
219
219
```
220
220
221
-
The above configuration snippet sets 2 cpus for the processes annotated with the `foo` label and 4 cpus to all processes*not*annotated with that label. Finally it sets the use of `long` queue to all process whose name does *not* start with `align`.
221
+
The above configuration snippet sets 2 cpus for every process labeled as `hello`and 4 cpus to every process*not*label as `hello`. It also specifies the `long` queue for every process whose name does *not* start with `align`.
222
222
223
223
(config-selector-priority)=
224
224
@@ -238,17 +238,17 @@ For example:
238
238
```groovy
239
239
process {
240
240
cpus = 4
241
-
withLabel: foo { cpus = 8 }
242
-
withName: bar { cpus = 16 }
243
-
withName: 'baz:bar' { cpus = 32 }
241
+
withLabel: hello { cpus = 8 }
242
+
withName: bye { cpus = 16 }
243
+
withName: 'mysub:bye' { cpus = 32 }
244
244
}
245
245
```
246
246
247
247
With the above configuration:
248
248
- All processes will use 4 cpus (unless otherwise specified in their process definition).
249
-
- Processes annotated with the `foo` label will use 8 cpus.
250
-
- Any process named `bar` (or imported as `bar`) will use 16 cpus.
251
-
- Any process named `bar` (or imported as `bar`) invoked by a workflow named `baz` with use 32 cpus.
249
+
- Processes annotated with the `hello` label will use 8 cpus.
250
+
- Any process named `bye` (or imported as `bye`) will use 16 cpus.
251
+
- Any process named `bye` (or imported as `bye`) invoked by a workflow named `mysub` with use 32 cpus.
252
252
253
253
(config-profiles)=
254
254
@@ -297,7 +297,7 @@ When defining a profile in the config file, avoid using both the dot and block s
297
297
298
298
```groovy
299
299
profiles {
300
-
foo {
300
+
cluster {
301
301
process.memory = '2 GB'
302
302
process {
303
303
cpus = 2
@@ -309,7 +309,7 @@ profiles {
309
309
Due to a limitation of the legacy config parser, the first setting will be overwritten by the second:
0 commit comments