Skip to content

Commit

Permalink
default and custom data path configuring for steps
Browse files Browse the repository at this point in the history
  • Loading branch information
AnjanaSenanayake committed Mar 16, 2020
1 parent 8a32049 commit 794c24b
Show file tree
Hide file tree
Showing 33 changed files with 17 additions and 2 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified pom.xml
100644 → 100755
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/MyUI.java
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
19 changes: 17 additions & 2 deletions src/main/java/com/mobilegenomics/f5n/controller/UIController.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ private void pipelineComponentsGenerator(TabSheet pipelineComponentsLayout, Stri
CheckBox checkBox = new CheckBox(argument.getArgName());
checkBox.setId(componentName + "_checkbox_" + argument.getArgName());
MyUI.componentTabLayout.addComponents(checkBox);
if (argument.getArgID().equals("MINIMAP2_REF_FILE") || argument.getArgID().equals("F5C_METH_REF_FILE") ||argument.getArgID().equals("F5C_ALIGN_REF_FILE")) {
CheckBox checkBoxExtra = new CheckBox("Use Internal Reference File");
checkBoxExtra.setId(componentName + "_checkbox_" + "internal_reference");
MyUI.componentTabLayout.addComponents(checkBoxExtra);
}
if (!argument.isFlagOnly()) {
TextField argumentInput = new TextField(argument.getArgName());
argumentInput.setWidth("300px");
Expand Down Expand Up @@ -189,7 +194,8 @@ private void pipelineComponentsGenerator(TabSheet pipelineComponentsLayout, Stri
}

public void readPipelineComponents(TabSheet pipelineComponentsLayout) {
String DATA_SET_PATH = "$DATA_SET_PATH/";
String DATA_SET = "$DATA_SET/";
String CUSTOM_DATA = "$CUSTOM_DATA/";
ArrayList<Argument> arguments;
for (String componentName : componentsNameList) {
arguments = CoreController.getSteps().get(PipelineStep.valueOf(componentName).getValue()).getArguments();
Expand All @@ -199,7 +205,16 @@ public void readPipelineComponents(TabSheet pipelineComponentsLayout) {
if (checkBox.getValue() && !argument.isFlagOnly()) {
TextField argumentInput = (TextField) findComponentById(pipelineComponentsLayout, componentName + "_textfield_" + argument.getArgName());
if (argumentInput != null && !argumentInput.isEmpty() && argument.isFile()) {
argument.setArgValue(DATA_SET_PATH + "" + argumentInput.getValue());
if(argument.getArgID().equals("MINIMAP2_REF_FILE") || argument.getArgID().equals("F5C_METH_REF_FILE") ||argument.getArgID().equals("F5C_ALIGN_REF_FILE")) {
CheckBox checkBoxExtra = (CheckBox) findComponentById(pipelineComponentsLayout, componentName + "_checkbox_" + "internal_reference");
assert checkBoxExtra != null;
if (checkBoxExtra.getValue())
argument.setArgValue(CUSTOM_DATA + "" + argumentInput.getValue());
else
argument.setArgValue(DATA_SET + "" + argumentInput.getValue());
} else {
argument.setArgValue(DATA_SET + "" + argumentInput.getValue());
}
argument.setSetByUser(true);
} else if (argumentInput != null && !argumentInput.isEmpty() && argument.isRequired()) {
argument.setArgValue(argumentInput.getValue());
Expand Down
Empty file modified src/main/java/com/mobilegenomics/f5n/core/Argument.java
100644 → 100755
Empty file.
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/core/PipelineStep.java
100644 → 100755
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/core/Step.java
100644 → 100755
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/dto/ErrorMessage.java
100644 → 100755
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/dto/Response.java
100644 → 100755
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/dto/Result.java
100644 → 100755
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/dto/State.java
100644 → 100755
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/dto/WrapperObject.java
100644 → 100755
Empty file.
Empty file modified src/main/java/com/mobilegenomics/f5n/support/FileServer.java
100644 → 100755
Empty file.
Empty file.
Empty file modified src/main/resources/README
100644 → 100755
Empty file.
Empty file modified src/main/resources/raw/arg_format.json
100644 → 100755
Empty file.
Empty file modified src/main/resources/raw/argument_id.txt
100644 → 100755
Empty file.
Empty file modified src/main/resources/raw/f5c_call_methylation_arguments.json
100644 → 100755
Empty file.
Empty file modified src/main/resources/raw/f5c_event_align_arguments.json
100644 → 100755
Empty file.
Empty file modified src/main/resources/raw/f5c_index_arguments.json
100644 → 100755
Empty file.
Empty file modified src/main/resources/raw/minimap2.json
100644 → 100755
Empty file.
Empty file modified src/main/resources/raw/samtool_index_arguments.json
100644 → 100755
Empty file.
Empty file modified src/main/resources/raw/samtool_sort_arguments.json
100644 → 100755
Empty file.
Empty file modified src/main/webapp/VAADIN/themes/mytheme/addons.scss
100644 → 100755
Empty file.
Empty file modified src/main/webapp/VAADIN/themes/mytheme/favicon.ico
100644 → 100755
Empty file.
Empty file modified src/main/webapp/VAADIN/themes/mytheme/mytheme.scss
100644 → 100755
Empty file.
Empty file modified src/main/webapp/VAADIN/themes/mytheme/styles.css
100644 → 100755
Empty file.
Empty file modified src/main/webapp/VAADIN/themes/mytheme/styles.scss
100644 → 100755
Empty file.

0 comments on commit 794c24b

Please sign in to comment.