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/hello_nextflow/02_hello_world.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -501,7 +501,7 @@ This is where channels come in: Nextflow uses channels to feed inputs to process
501
501
502
502
There are multiple ways to do this, but for now, we're just going to use the simplest possible channel, containing a single value.
503
503
504
-
We're going to create the channel using the `Channel.of()`constructor, which sets up a simple value channel, and give it a hardcoded string to use as greeting by declaring `greeting_ch = Channel.of('Hello world!')`.
504
+
We're going to create the channel using the `Channel.of()`factory, which sets up a simple value channel, and give it a hardcoded string to use as greeting by declaring `greeting_ch = Channel.of('Hello world!')`.
505
505
506
506
_Before:_
507
507
@@ -840,11 +840,11 @@ Learn how to make the workflow run on a batch of input values.
840
840
841
841
Workflows typically run on batches of inputs that are meant to be processed in bulk, so we want to upgrade the workflow to accept multiple input values.
842
842
843
-
Conveniently, the `Channel.of()`constructor we've been using is quite happy to accept more than one value, so we don't need to modify that at all; we just have to load more values into the channel.
843
+
Conveniently, the `Channel.of()`factory we've been using is quite happy to accept more than one value, so we don't need to modify that at all; we just have to load more values into the channel.
844
844
845
845
### 8.1. Load multiple greetings into the input channel
846
846
847
-
To keep things simple, we go back to hardcoding the greetings in the constructor instead of using a parameter for the input, but we'll improve on that shortly.
847
+
To keep things simple, we go back to hardcoding the greetings in the channel factory instead of using a parameter for the input, but we'll improve on that shortly.
Copy file name to clipboardExpand all lines: docs/hello_nextflow/04_hello_genomics.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,7 +234,7 @@ workflow {
234
234
}
235
235
```
236
236
237
-
You'll notice we're using the same `.fromPath` channel constructor as we used at the end of Part 1 (Hello World) of this training series.
237
+
You'll notice we're using the same `.fromPath` channel factory as we used at the end of Part 1 (Hello World) of this training series.
238
238
Indeed, we're doing something very similar.
239
239
The difference is that this time we're telling Nextflow to load the file path itself into the channel as an input element, rather than reading in its contents.
240
240
@@ -466,7 +466,7 @@ params.reads_bam = [
466
466
]
467
467
```
468
468
469
-
And that's actually all we need to do, because the channel constructor we use in the workflow body (`.fromPath`) is just as happy to accept multiple file paths to load into the input channel as it was to load a single one.
469
+
And that's actually all we need to do, because the channel factory we use in the workflow body (`.fromPath`) is just as happy to accept multiple file paths to load into the input channel as it was to load a single one.
This way we can continue to be lazy, but the list of files no longer lives in the workflow code itself, which is a big step in the right direction.
750
750
751
-
### 4.3. Update the channel constructor to read lines from a file
751
+
### 4.3. Update the channel factory to read lines from a file
752
752
753
-
Currently, our input channel constructor treats any files we give it as the data inputs we want to feed to the indexing process.
753
+
Currently, our input channel factory treats any files we give it as the data inputs we want to feed to the indexing process.
754
754
Since we're now giving it a file that lists input file paths, we need to change its behavior to parse the file and treat the file paths it contains as the data inputs.
755
755
756
756
Fortunately we can do that very simply, just by adding the [`.splitText()` operator](https://www.nextflow.io/docs/latest/reference/operator.html#operator-splittext) to the channel construction step.
0 commit comments