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/07_hello_modules.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,12 +28,18 @@ We're going to be working with a clean set of project files inside the project d
28
28
### 0.1. Explore the `hello-modules` directory
29
29
30
30
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.
32
31
33
32
```bash
34
33
cd hello-modules
35
34
```
36
35
36
+
!!! warning
37
+
38
+
If you're continuing on directly from Part 5, you'll need to move up one directory first.
39
+
```
40
+
cd ../hello-modules
41
+
```
42
+
37
43
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.
38
44
39
45
```console title="Directory contents"
@@ -94,7 +100,7 @@ Learn how to create your first module following conventions inspired by the nf-c
94
100
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.
95
101
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).
96
102
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:
103
+
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:
98
104
99
105
```console title="Directory structure"
100
106
modules
@@ -187,12 +193,11 @@ include { <MODULE_NAME> } from './modules/local/<toolkit>>/<tool>/main.nf'
187
193
188
194
Let's insert that above the workflow block and fill it out appropriately.
Copy file name to clipboardExpand all lines: docs/hello_nextflow/08_hello_nf-test.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,6 @@ And it also means that when you assemble a new workflow from existing modules th
13
13
In this part of the training, we're going to show you how to use [**nf-test**](https://www.nf-test.com/), a testing framework that integrates well with Nextflow and makes it straightforward to add both module-level and workflow-level tests to your pipeline.
14
14
For more background information about nf-test, we recommend you read [this blog post](https://nextflow.io/blog/2024/nf-test-in-nf-core.html).
15
15
16
-
!!!note
17
-
18
-
This part of the training was developed in collaboration with Sateesh Peri, who implemented all the tests.
Depending on the nextflow version you have installed, this command might fail due to a version mismatch.
140
-
If that happens, you can temporarily run the pipeline with a different version than you have installed by adding NXF_VER=<version> to the start of your command as shown below:
143
+
If that happens, you can temporarily run the pipeline with a different version than you have installed by adding `NXF_VER=version` to the start of your command as shown below:
141
144
142
-
```bash
143
-
NXF_VER=24.09.2-edge nextflow run nf-core/demo -profile docker,test --outdir results
144
-
```
145
+
```bash
146
+
NXF_VER=24.09.2-edge nextflow run nf-core/demo -profile docker,test --outdir results
0 commit comments