Skip to content

Commit eec8bd5

Browse files
committed
analysis: fix tiering dependencies, #TASK-7610
1 parent 444f27c commit eec8bd5

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

opencga-analysis/src/main/java/org/opencb/opencga/analysis/clinical/tiering/TieringInterpretationAnalysisExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.opencb.biodata.models.clinical.pedigree.Pedigree;
2727
import org.opencb.biodata.models.core.Region;
2828
import org.opencb.biodata.models.variant.Variant;
29-
import org.opencb.biodata.tools.clinical.TieringClinicalVariantCreator;
29+
import org.opencb.biodata.tools.clinical.tiering.TieringClinicalVariantCreator;
3030
import org.opencb.biodata.tools.pedigree.ModeOfInheritance;
3131
import org.opencb.commons.datastore.core.Query;
3232
import org.opencb.commons.datastore.core.QueryOptions;

opencga-analysis/src/test/java/org/opencb/opencga/analysis/tools/ToolFactoryTest.java

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@
1818

1919
import org.junit.Test;
2020
import org.junit.experimental.categories.Category;
21-
import org.opencb.commons.datastore.core.ObjectMap;
22-
import org.opencb.opencga.analysis.customTool.CustomToolExecutor;
2321
import org.opencb.opencga.core.exceptions.ToolException;
2422
import org.opencb.opencga.core.models.common.Enums;
2523
import org.opencb.opencga.core.testclassification.duration.ShortTests;
26-
import org.opencb.opencga.core.tools.ToolParams;
2724
import org.opencb.opencga.core.tools.annotations.Tool;
2825

29-
import java.lang.reflect.Field;
3026
import java.util.Arrays;
3127
import java.util.Collections;
3228
import java.util.HashSet;
@@ -59,37 +55,6 @@ protected void run() throws Exception {
5955
}
6056
}
6157

62-
@Test
63-
public void test() throws ToolException {
64-
// ObjectMap params = new ObjectMap("params", new ObjectMap("commandLine", "blablabla"));
65-
ObjectMap params2 = new ObjectMap("params", new ObjectMap("params", new ObjectMap("key", "value")).append("commandLine", "blablabla"));
66-
67-
CustomToolExecutor customToolExecutor = new CustomToolExecutor();
68-
69-
ToolParams toolParams = null;
70-
for (Field field : CustomToolExecutor.class.getDeclaredFields()) {
71-
if (field.isAnnotationPresent(org.opencb.opencga.core.tools.annotations.ToolParams.class)
72-
&& ToolParams.class.isAssignableFrom(field.getType())) {
73-
try {
74-
field.setAccessible(true);
75-
toolParams = (ToolParams) field.get(customToolExecutor);
76-
if (toolParams == null) {
77-
toolParams = (ToolParams) field.getType().newInstance();
78-
field.set(customToolExecutor, toolParams);
79-
}
80-
break;
81-
} catch (IllegalAccessException | InstantiationException e) {
82-
throw new ToolException("Unexpected error reading ToolParams");
83-
}
84-
}
85-
}
86-
System.out.println("toolParams.toJson() = " + toolParams.toJson());
87-
// toolParams.updateParams(params);
88-
System.out.println("toolParams.toJson() = " + toolParams.toJson());
89-
toolParams.updateParams(params2);
90-
System.out.println("toolParams.toJson() = " + toolParams.toJson());
91-
}
92-
9358
@Test
9459
public void testFactoryById() throws ToolException {
9560
ToolFactory toolFactory = new ToolFactory();

0 commit comments

Comments
 (0)