Factorize common workflow generation functionality.#147
Merged
Conversation
eladrion
commented
Dec 12, 2025
src/main/java/nl/uu/cs/ape/solver/solutionStructure/snakemake/SnakemakeCreator.java
Show resolved
Hide resolved
Contributor
Author
|
Tested with the following config: Does this look good, @CGru21 ? |
Contributor
Author
Contributor
Author
|
It seems to match the corresponding CWL representation, apart from the placeholder paths: |
Contributor
Author
|
Hi @vedran-kasalica and @CGru21, I think I am done with this PR which includes some refactorings to make some input handling consistent and otherwise extrapolates common functionality into separate methods to make reuse and extension easier. Also, I added some missing methods for the configuration of the Snakemake export. Please take a look. I will do something else now. |
eladrion
commented
Jan 15, 2026
src/main/java/nl/uu/cs/ape/solver/solutionStructure/snakemake/SnakemakeCreator.java
Outdated
Show resolved
Hide resolved
CGru21
reviewed
Jan 15, 2026
src/main/java/nl/uu/cs/ape/solver/solutionStructure/snakemake/SnakemakeCreator.java
Outdated
Show resolved
Hide resolved
Contributor
Author
Collaborator
|
I tested this with my snakemake examples and everything looks good. |
…olutionCreationUtils` and also replace dependent padding (`if (stepNumber < 10)`) by String format flags
…th `getInputTypes()` and refactor the functions `generateRuleInput()` and `generateRuleOutput()` such that String join is used making removal of superfluous trailing newline and colon obsolete.
…thod and additionally make configuration checking for outputs consistent in all methods.
dd25c9b to
15fa60f
Compare
Contributor
Author
|
Local additional tests also ran successfully |
Contributor
Author
|
Merging now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Pull Request Overview
The PR extrapolates functionality for generating CWL and SnakeMake files (e.g. indentation, name generation) into a separate class to reduce code duplication. Also, padding of workflow numbers are now done by using String format tags.
Related Issue
Resolves #137
Changes Introduced
Merely refactoring.
How Has This Been Tested?
Local tests were run on the test suite.
Checklist