Skip to content

Emit a named val in DSL2 #2115

Answered by phue
multimeric asked this question in Q&A
May 17, 2021 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

The syntax requires to put a colon after the emit keyword, i.e:

nextflow.enable.dsl=2

process test {
    output:
        val "abc", emit: x
    script:
        """
        true
        """
}

workflow {
    test()
    test.out.x.view()
}

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@phue
Comment options

@multimeric
Comment options

@bobamess
Comment options

@multimeric
Comment options

@bobamess
Comment options

Answer selected by multimeric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants