Skip to content

Instantly share code, notes, and snippets.

@robsyme
Last active August 23, 2022 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robsyme/f5c1227ac748006821e17e9e8b763789 to your computer and use it in GitHub Desktop.
Save robsyme/f5c1227ac748006821e17e9e8b763789 to your computer and use it in GitHub Desktop.
process A {
input:
val(i)
output:
path("output.${i}.txt")
"echo hello $i > output.${i}.txt"
}
process B {
storeDir 'store'
input:
path(infile)
output:
path("*.out")
"cp $infile ${infile.baseName}.out"
}
process C {
debug true
input:
path(infile)
"ls"
}
workflow {
Channel.of(params.input) | A | B | C
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment