Skip to content

Commit 7a7b8e4

Browse files
authored
Replace channel.from with channel.of in SQ: WoW(#688)
1 parent 9f57145 commit 7a7b8e4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/side_quests/workflows_of_workflows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ include { TIMESTAMP_GREETING } from '../modules/timestamp_greeting'
7474
7575
workflow {
7676
77-
names_ch = channel.from('Alice', 'Bob', 'Charlie')
77+
names_ch = channel.of('Alice', 'Bob', 'Charlie')
7878
7979
// Chain processes: validate -> create greeting -> add timestamp
8080
validated_ch = VALIDATE_NAME(names_ch)
@@ -191,7 +191,7 @@ Create `main.nf`:
191191
include { GREETING_WORKFLOW } from './workflows/greeting'
192192
193193
workflow {
194-
names = channel.from('Alice', 'Bob', 'Charlie')
194+
names = channel.of('Alice', 'Bob', 'Charlie')
195195
GREETING_WORKFLOW(names)
196196
197197
GREETING_WORKFLOW.out.greetings.view { "Original: $it" }
@@ -291,7 +291,7 @@ include { GREETING_WORKFLOW } from './workflows/greeting'
291291
include { TRANSFORM_WORKFLOW } from './workflows/transform'
292292
293293
workflow {
294-
names = channel.from('Alice', 'Bob', 'Charlie')
294+
names = channel.of('Alice', 'Bob', 'Charlie')
295295
296296
// Run the greeting workflow
297297
GREETING_WORKFLOW(names)

main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include { GREETING_WORKFLOW } from './workflows/greeting'
22

33
workflow {
4-
channel.from('Alice', 'Bob', 'Charlie') | GREETING_WORKFLOW
4+
channel.of('Alice', 'Bob', 'Charlie') | GREETING_WORKFLOW
55

66
GREETING_WORKFLOW.out.greetings_ch.view { "Original: $it" }
77
GREETING_WORKFLOW.out.timestamped_ch.view { "Timestamped: $it" }

side-quests/solutions/workflows_of_workflows/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include { GREETING_WORKFLOW } from './workflows/greeting'
22
include { TRANSFORM_WORKFLOW } from './workflows/transform'
33

44
workflow {
5-
names = channel.from('Alice', 'Bob', 'Charlie')
5+
names = channel.of('Alice', 'Bob', 'Charlie')
66

77
// Run the greeting workflow
88
GREETING_WORKFLOW(names)

0 commit comments

Comments
 (0)