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

synthesize follow on step if there are dependencies between outputs of the same task #169

Open
mr-c opened this issue Feb 10, 2022 · 0 comments

Comments

@mr-c
Copy link
Member

mr-c commented Feb 10, 2022

For example:

Boolean is_outlier_data = duplication_rate > max_duplication_in_reasonable_sample || chimerism_rate > max_chimerism_in_reasonable_sample

refers the results of the previous two outputs. There is no outputs object in CWL available to outputEval so we can't solve the problem in place.

(our current translation of this is wrong in several ways:

glob: $("duplication_value.txt" > inputs.max_duplication_in_reasonable_sample
)

However, we can generate an extra CWL step that would take the available outputs and then calculate the remaining outputs and pass through the original outputs along side them.

If the original WDL document was a single WDL Task, then we would produce a CWL workflow of two steps: the original task and the follow-on as mentioned about.

The naming should be adjust so that the "original" step or task has a different name and the synthesized step gets the "original" name so that all consumers of the original step get the correct outputs.

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

1 participant