Skip to content

Nextflow Translator#35

Merged
rafaelfsilva merged 19 commits intowfcommons:mainfrom
WOW-WorkflowScheduler:feature/nextflow_translator
Jan 4, 2024
Merged

Nextflow Translator#35
rafaelfsilva merged 19 commits intowfcommons:mainfrom
WOW-WorkflowScheduler:feature/nextflow_translator

Conversation

@ftschirpke
Copy link
Copy Markdown
Contributor

This PR adds a translator for the Nextflow workflow management system.

Implementation

The translator defines workflows only by their abstract tasks (wfcommons' task.category) allowing Nextflow to deal with the task instances. This requires more code than a brute force solution would, but the result is a Nextflow-like definition of wfcommons workflows using Nextflow's common features like channels.

Limitations

By using the Nextflow-like way to script a workflow we cannot support iterations (a task depending on another task with the same task.category), because Nextflow does not either.

Discussion

As it is a limitation of Nextflow itself, I did not implement any way of supporting iterations in a workflow, the code raises an error instead. Please tell me if you would like me to change this behavior.

I am interested in any feedback and I will gladly answer questions.

@ftschirpke ftschirpke closed this Nov 8, 2023
@ftschirpke ftschirpke reopened this Nov 8, 2023
@rafaelfsilva rafaelfsilva self-assigned this Jan 4, 2024
@rafaelfsilva rafaelfsilva merged commit a2c62bd into wfcommons:main Jan 4, 2024
@ftschirpke ftschirpke deleted the feature/nextflow_translator branch February 1, 2024 13:36
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

Successfully merging this pull request may close these issues.

2 participants