Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing connection in DAG for conditional execution #93

Open
FriederikeHanssen opened this issue Jan 13, 2025 · 1 comment
Open

Missing connection in DAG for conditional execution #93

FriederikeHanssen opened this issue Jan 13, 2025 · 1 comment

Comments

@FriederikeHanssen
Copy link

Hey!

I created a small example here: https://github.com/FriederikeHanssen/mre/tree/dag_conditional

Essentially, whenever there is a conditional execution the DAG is missing one connection it seems:

The DAG of this code snippet:

    if(params.echo){
        echo = TOUCH(params.echo).file
    } else {
        echo = DEFAULT().file
    }

    APPEND(echo)

renders to:

Screenshot 2025-01-13 at 12 14 16

I would expect a connection between the process TOUCH and APPEND as well.

Nextflow plugin Version: 1.0.3

@bentsherman bentsherman transferred this issue from nextflow-io/vscode-language-nextflow Jan 13, 2025
@bentsherman
Copy link
Member

Related to #88

For what it's worth, you can do this:

echo = params.echo
    ? TOUCH(params.echo).file
    : DEFAULT().file

And I think it will render correctly. But it's probably only feasible for simple cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants