Repository navigation
Expose the functionality to suppress the creation of non-executable CWL and snakemake files. #104
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -246,11 +246,27 @@ public static List<APEWorkflowMetadata> runSynthesis(JSONObject configJson, bool | |
| // Define the synthesis run ID | ||
| String runID = RestApeUtils.generateRunID(configJson.toString()); | ||
|
|
||
| SolutionsList candidateSolutions = executeSynthesis(configJson, runID); | ||
| String solutionPath = RestApeUtils.createDirectory(runID); | ||
|
|
||
| APE apeFramework = new APE(configJson); | ||
|
|
||
| APERunConfig runConfig = new APERunConfig(configJson, apeFramework.getDomainSetup()); | ||
|
|
||
| runConfig.setSolutionPath(solutionPath); | ||
| int maxSol = runConfig.getMaxNoSolutions(); | ||
| runConfig.setNoCWL(maxSol); | ||
| runConfig.setNoSnakemake(maxSol); | ||
| runConfig.setNoGraphs(maxSol); | ||
| runConfig.setDebugMode(true); | ||
|
|
||
| boolean createPartialScripts = runConfig.getCreatePartialScripts(); | ||
|
vedran-kasalica marked this conversation as resolved.
|
||
|
|
||
| // run the synthesis and retrieve the solutions | ||
| SolutionsList candidateSolutions = apeFramework.runSynthesis(runConfig); | ||
|
|
||
| // 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); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Set myself as assignee, can refactor this. |
||
| APE.writeSnakemakeWorkflows(candidateSolutions, createPartialScripts); | ||
| APE.writeTavernaDesignGraphs(candidateSolutions, Format.SVG); | ||
| APE.writeTavernaDesignGraphs(candidateSolutions, Format.PNG); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
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 atmThere was a problem hiding this comment.
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?
There was a problem hiding this comment.
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_graphsandnumber_of_cwl_filesin configJson and RestAPE just collects the info from there. I will open an issue.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue opened.