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/en/docs/hello_nf-core/02_rewrite_hello.md
+95-13Lines changed: 95 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Once the TUI closes, you should see the following console output.
71
71
| \| | \__, \__/ | \ |___ \`-._,-`-,
72
72
`._,._,'
73
73
74
-
nf-core/tools version 3.4.1 - https://nf-co.re
74
+
nf-core/tools version 3.5.2 - https://nf-co.re
75
75
76
76
77
77
INFO Launching interactive nf-core pipeline creation tool.
@@ -229,7 +229,7 @@ If you look inside the `main.nf` file, you'll see it imports a workflow called `
229
229
230
230
This is equivalent to the `workflows/demo.nf` workflow we encountered in Part 1, and serves as a placeholder workflow for our workflow of interest, with some nf-core functionality already in place.
@@ -285,6 +303,13 @@ Compared to a basic Nextflow workflow like the one developed in [Hello Nextflow]
285
303
286
304
These are optional features of Nextflow that make the workflow **composable**, meaning that it can be called from within another workflow.
287
305
306
+
!!! note "The `Channel.topic` block"
307
+
308
+
You may have noticed the `def topic_versions = Channel.topic("versions")` block starting at line 17.
309
+
This is boilerplate housekeeping code that collects software version information from all modules automatically.
310
+
nf-core is rolling out this mechanism across all pipelines in 2026, so you'll see it in all new pipelines going forward.
311
+
Part 4 of this course explains how it works in detail.
312
+
288
313
!!! note "Composable workflows in depth"
289
314
290
315
The [Workflows of Workflows](../side_quests/workflows_of_workflows.md) Side Quest explores workflow composition in much greater depth, including how to compose multiple workflows together and manage complex data flows between them. We're introducing composability here because it's a fundamental requirement of the nf-core template architecture, which uses nested workflows to organize pipeline initialization, the main analysis workflow, and completion tasks into separate, reusable components.
Overall this code does very little aside from some housekeeping that has to do with capturing the version of any software tools that get run in the pipeline.
763
+
The highlighted lines define the composable workflow structure: `workflow HELLO {`, `take:`, `main:`, and `emit:`.
764
+
The large block between lines 17–34 is more substantial: it handles software version capture using topic channels, a mechanism nf-core is rolling out across all pipelines in 2026.
765
+
We'll explain it in Part 4; for now, treat it as boilerplate that you can leave untouched.
721
766
722
767
We need to add the relevant code from the composable version of the original workflow that we developed in section 2.
723
768
@@ -730,7 +775,8 @@ We're going to tackle this in the following stages:
730
775
731
776
!!! note
732
777
733
-
We're going to ignore the version capture for this first pass and will look at how to wire that up in a later part of this training.
778
+
We're going to ignore the version capture block for this first pass.
779
+
Part 4 explains how it works.
734
780
735
781
### 3.1. Copy the modules and set up module imports
736
782
@@ -877,7 +923,25 @@ This ordering makes sense because in a real pipeline, the processes would emit v
0 commit comments