John Salamon
Jun 26, 2025
|
) is a special operator, and it
works just like a pipe in bash
# Piping
A | B | C
# Versus, more procedural style (same outcome)
ch_out = A()
ch_out_2 = B(ch_out)
C(ch_out_2)
// Use two forward slashes for single line comments
// Assign variables like this:
x = 2
// define Lists
myList = [1,2,3]
// and Maps
myMap = ["key": "value"]
// access object methods and attributes with a dot
myList.size() // returns 3
// parentheses can be omitted for single parameter functions
// e.g., the following two lines are equivalent:
println("hello world")
println "hello world"
Nextflow | Snakemake | |
---|---|---|
Language extends | Groovy | Python |
DAG is defined | Explicitly | Implicitly |
Root of graph is | Inputs | Outputs |
History | More commercial | More academic |
Community on | Slack | Discord |
Let’s write a workflow!