Add support for skipping partial shell script creation.#149
Conversation
|
Hi @vedran-kasalica, could you take a look into this solution? Creating non-functional scripts by default felt wrong to me, so I only do it if explicitly desired. Otherwise, I log an error message with information about the tool names where the code is missing. |
|
Thanks @eladrion, that’s a good idea, I will have a look at it (I am currently not able to generate the I’m wondering whether the tag could be used for all workflow outputs ( On a more general note, the |
|
I think the tag could be reused for CWL. CWL requires a |
|
@vedran-kasalica, @CGru21: I exteded the support for skipping partial shell scripts to CWL and Snakemake export. A CWL workflow is seen as partial, if the |
|
@vedran-kasalica Currently, I first check (if partial implementations shall be skipped), whether there is missing information about CWL reference or code. This requires iterating over the modules. And if all information is present, the workflow is generated, which again includes iterating over the modules. I would propose that I propagate the "skipping" flag to the creation of the workflow and if |
|
Rerunning Github action on the current basis of main. |
…se` by default) and only create partial scripts with missing tool information as comment if set to `true`. Otherwise, log output file and missing tools as error.
…port for restricting to full implementations for CWL and snakemake by leveraging "CWL file reference" and "code".
c63dce1 to
d6e2fdc
Compare
… Instead, we inform the user that the file was not generated.
|
@CGru21 Could you look into this code and review it? Also, here is a sample config JSON: The config yields 7 files for CWL and no files for shell scripts and Snakemake. |
|
I looked at the snakemake part and everything works fine with my examples. |
Hi @CGru21, could you then approve, so I can merge? |
|
Aaah, don't need that. Merging now |
Pull Request Overview
Implement a configuration option
create_partial_scripts(falseby default) and only create partial scripts with missing tool information as comment if set totrue. Otherwise, log output file and missing tools as error.Also, the created scripts contain the same header (generation info) as CWL files, for example
Related Issue
Resolves #50
Changes Introduced
APERunConfigandAPEConfigTagFactorySolutionGraphFactorywriteExecutableWorkflowsinAPEto react on the configuration optioncreate_partial_scriptswith valuetrueto behave as beforeHow Has This Been Tested?
Locally using test suite.
Checklist