Skip to content

Commit e871696

Browse files
Minor fixes to Hello Modules
1 parent f2c0b44 commit e871696

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/hello_nextflow/07_hello_modules.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@ We're going to be working with a clean set of project files inside the project d
2828
### 0.1. Explore the `hello-modules` directory
2929

3030
Let's move into the project directory.
31-
If you're continuing on directly from Part 5, you'll need to move up one directory first.
3231

3332
```bash
3433
cd hello-modules
3534
```
3635

36+
!!! note
37+
If you're continuing on directly from Part 5, you'll need to move up one directory first.
38+
```
39+
cd ../hello-modules
40+
```
41+
3742
The `hello-modules` directory has the same content and structure that you're expected to end up with in `hello-config` on completion of Part 5.
3843

3944
```console title="Directory contents"
@@ -94,7 +99,7 @@ Learn how to create your first module following conventions inspired by the nf-c
9499
From a technical standpoint, you can create a module simply by copying the process definition into its own file, and you can name that file anything you want.
95100
However, the Nextflow community has adopted certain conventions for code organization, influenced in large part by the [nf-core](https://nf-co.re) project (which we'll cover later in this training series).
96101

97-
The convention for process modules is that the process definition should be written to a standalone file named `main.nf`, stored in a directory structure with three to four levels:
102+
The convention for Nextflow modules is that the process definition should be written to a standalone file named `main.nf`, stored in a directory structure with three to four levels:
98103

99104
```console title="Directory structure"
100105
modules
@@ -187,7 +192,6 @@ include { <MODULE_NAME> } from './modules/local/<toolkit>>/<tool>/main.nf'
187192

188193
Let's insert that above the workflow block and fill it out appropriately.
189194

190-
````groovy title="hello-modules/main.nf" linenums="73"
191195
_Before:_
192196

193197
```groovy title="hello-modules/main.nf" linenums="73"
@@ -208,7 +212,7 @@ workflow {
208212
We're running the workflow with essentially the same code and inputs as before, so let's add the `-resume` flag and see what happens.
209213

210214
```bash
211-
nextflow run main.nf -profile my_laptop,demo
215+
nextflow run main.nf -profile my_laptop,demo -resume
212216
```
213217

214218
Sure enough, Nextflow recognizes that it's still all the same work to be done, even if the code is split up into multiple files.

0 commit comments

Comments
 (0)