From f4b64c4b554f3c34ded81e1fe0878fd6c04da16f Mon Sep 17 00:00:00 2001 From: mbarriosalmirall <165905225+mbarriosalmirall@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:27:42 +0200 Subject: [PATCH] Update main.nf include parameter into hello pipeline --- main.nf | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/main.nf b/main.nf index 482c5d3..9757f36 100644 --- a/main.nf +++ b/main.nf @@ -1,13 +1,21 @@ #!/usr/bin/env nextflow -echo true -cheers = Channel.from 'Bojour', 'Ciao', 'Hello', 'Hola' +params.example_key = 'Hello' process sayHello { - input: - val x from cheers - - """ - echo '$x mundo!!' - """ + input: + val x + + output: + stdout + + script: + """ + echo '${x} world!' + """ +} + +workflow { + Channel.of(params.example_key) | sayHello | view } +