Skip to content

Commit

Permalink
Added running the script with input values or from a csv input file
Browse files Browse the repository at this point in the history
  • Loading branch information
apca committed Nov 8, 2024
1 parent 3f83e4e commit 89282b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions course_contents/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,12 @@ workflow {
convertToUpper(sayHello.out)
}
```

## Let's run the script on a batch of input values

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.

Channel.of() factory we've been using is quite happy to accept more than one value.
`Channel.of()` factory we've been using is quite happy to accept more than one value.

```groovy
// create a channel for inputs
Expand All @@ -278,7 +279,7 @@ process sayHello {
}
```

Let's run the script again. But hang on, to expand the logging to display one line per process call to have a closer look to what is going on, just add -ansi-log false to the command.
Let's run the script again. But hang on, to expand the logging to display one line per process call to have a closer look to what is going on, just add `-ansi-log false` to the command.

```groovy
nextflow run hello-world.nf -ansi-log false
Expand Down

0 comments on commit 89282b3

Please sign in to comment.