Skip to content

Support named channel inputs for processes and workflows #2257

@nh13

Description

@nh13

New feature

I would like to have the DSL2 support specifying the channels for processes and workflows via keywords.
Some workflows I've written require many channels (5, 10, even 20!).
It's hard to make sure that the order I specify is the same as the order I require.

Usage scenario

workflow foo {
    take:
    ch_in_1
    ch_in_2
    ...
    ch_in_100

    main:
    ...
}

workflow bar {
    ch_in_1   = Channel.from(...)
    ch_in_2   = Channel.from(...)
    ...
    ch_in_100 = Channel.from(...)

    ...
    foo(
        ch_in_1:    ch_in_1,
        ch_in_2:    ch_in_2,
        ....
        ch_in_100:  ch_in_100,
    )
}

Suggest implementation

?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions