Skip to content
Snippets Groups Projects

Resolve "for some translocations the reactant and product are the same species in CellDesigner or SBML exports"

1 file
+ 10
10
Compare changes
  • Side-by-side
  • Inline
@@ -149,7 +149,7 @@ public class NewApiDocs {
.optional()
.type(JsonFieldType.NUMBER),
fieldWithPath(prefix + "color")
.description("color that shoyld be used when drawing overlay entry")
.description("color that should be used when drawing overlay entry")
.optional()
.type(JsonFieldType.OBJECT),
fieldWithPath(prefix + "description")
@@ -163,8 +163,7 @@ public class NewApiDocs {
}
private List<FieldDescriptor> getReactionCsvFields() {
final List<FieldDescriptor> result = new ArrayList<>();
result.addAll(Arrays.asList(
return new ArrayList<>(Arrays.asList(
fieldWithPath("elementTypes")
.description("list of element types")
.type(JsonFieldType.ARRAY),
@@ -186,12 +185,10 @@ public class NewApiDocs {
fieldWithPath("excludedCompartmentIds")
.description("list of compartment identifiers where all participant should not be present")
.type(JsonFieldType.ARRAY)));
return result;
}
private List<FieldDescriptor> getElementCsvFields() {
final List<FieldDescriptor> result = new ArrayList<>();
result.addAll(Arrays.asList(
return new ArrayList<>(Arrays.asList(
fieldWithPath("types")
.description("list of element types")
.type(JsonFieldType.ARRAY),
@@ -210,7 +207,6 @@ public class NewApiDocs {
fieldWithPath("excludedCompartmentIds")
.description("list of compartment identifiers from which elements should be excluded")
.type(JsonFieldType.ARRAY)));
return result;
}
private List<FieldDescriptor> getBioEntityFields(final String prefix) {
@@ -310,8 +306,7 @@ public class NewApiDocs {
}
private List<FieldDescriptor> getSpeciesSpecificFields(final String prefix) {
final List<FieldDescriptor> result = new ArrayList<>();
result.addAll(Arrays.asList(
final List<FieldDescriptor> result = new ArrayList<>(Arrays.asList(
fieldWithPath(prefix + "nameX")
.description("x coordinate of the element name on the map")
.type(JsonFieldType.NUMBER)
@@ -452,6 +447,11 @@ public class NewApiDocs {
.type(JsonFieldType.NUMBER)
.optional(),
fieldWithPath(prefix + "pathway")
.description("identifier of a pathway in which element is located")
.type(JsonFieldType.NUMBER)
.optional(),
fieldWithPath(prefix + "compartmentName")
.description("name of a compartment in which element is located")
.type(JsonFieldType.STRING)
@@ -549,7 +549,7 @@ public class NewApiDocs {
final List<FieldDescriptor> result = new ArrayList<>();
result.addAll(Arrays.asList(
fieldWithPath(prefix + "idReaction")
.description("resction identifier taken from source file")
.description("reaction identifier taken from source file")
.type(JsonFieldType.STRING)
.optional(),
fieldWithPath(prefix + "reversible")
Loading