Skip to content

Commit

Permalink
Merge pull request #452 from ejseqera/update_greeting_channel_constru…
Browse files Browse the repository at this point in the history
…ction

Fix channel construction for greeting input
  • Loading branch information
mribeirodantas authored Nov 16, 2024
2 parents fd9ff87 + c2bfb18 commit 3c8d293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/hello_nextflow/02_hello_world.md
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ At this point we introduce a new channel factory, `Channel.fromPath()`, which ha
We're going to use that instead of the `Channel.of()` factory we used previously; the base syntax looks like this:

```groovy title="channel construction syntax"
Channel.fromPath(input_file)
Channel.fromPath(params.input_file)
```

Now, we are going to deploy a new concept, an 'operator' to transform that CSV file into channel content. You'll learn more about operators later, but for now just understand them as ways of transforming channels in a variety of ways.
Expand All @@ -1077,7 +1077,7 @@ Since our goal is to read in the contents of a `.csv` file, we're going to add t
So the channel construction instruction becomes:

```groovy title="channel construction syntax"
Channel.fromPath(input_file)
Channel.fromPath(params.input_file)
.splitCsv()
.flatten()
```
Expand Down

0 comments on commit 3c8d293

Please sign in to comment.