Skip to content

Expose the functionality to suppress the creation of non-executable CWL and snakemake files. - #104

Merged
eladrion merged 4 commits into
mainfrom
expose_nonexecutable_workflow_filtering
Sep 8, 2026
Merged

eladrion merged 4 commits into
mainfrom
expose_nonexecutable_workflow_filtering

Conversation

@eladrion

@eladrion eladrion commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request Overview

This PR uses the functionality from the APE backend to exclude "partial" scripts creation. If provided by the frontend,
the option create_partial_scripts is used by RestAPE and generation of CWL and Snakemake files for which the tool annotations are lacking the instructions/code to execute is skipped, if create_partial_scripts is set to false.

Related Issue

None.

Changes Introduced

How Has This Been Tested?

Checklist

  • I have referenced a related issue.
  • I have followed the project’s style guidelines.
  • My changes include tests, if applicable.
  • All tests pass locally.
  • I have added myself to the CITATION.cff file, if not already present.

Comment thread src/main/java/nl/esciencecenter/restape/ApeAPI.java
// Write solutions (as CWL and Snakemake files and figures) to the file system.
APE.writeCWLWorkflows(candidateSolutions, true);
APE.writeSnakemakeWorkflows(candidateSolutions, true);
APE.writeCWLWorkflows(candidateSolutions, createPartialScripts);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally unrelated, but I just looked up the original implementation and made an issue as this might be redundant to define as such. Workflomics/ape#158

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set myself as assignee, can refactor this.


runConfig.setSolutionPath(solutionPath);
int maxSol = runConfig.getMaxNoSolutions();
runConfig.setNoCWL(maxSol);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be even better if Workflomics would provide these in the configJson, but not crucial atm

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean that APERunConfig sets the count of CWL/SMK/Graphs based on what is written in the configJson or that configJson contains an attribute for count of CWL/SMK/Graphs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aah, I get it, @vedran-kasalica. You mean that workflomics-frontend sets the existing fields number_of_generated_graphs and number_of_cwl_files in configJson and RestAPE just collects the info from there. I will open an issue.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue opened.

@vedran-kasalica vedran-kasalica left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, I left a few comments, but it can be merged as it is.

@eladrion

eladrion commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Changes look good, I left a few comments, but it can be merged as it is.

Thanks for your review, will merge for now and work on the new issues as soon as I have some time.

@eladrion
eladrion merged commit c6ff091 into main Sep 8, 2026
2 checks passed
@eladrion
eladrion deleted the expose_nonexecutable_workflow_filtering branch September 8, 2026 10:30
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