Skip to content
Snippets Groups Projects
Commit 11abc97e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when exporting to cell designer elements are distinguishe also by

homodimer 
parent 2f45454e
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,7 @@ public class CellDesignerElementCollection {
if (modelElement.getCompartment() != null) {
compartmenName = modelElement.getCompartment().getName();
}
String modifications = "";
if (modelElement instanceof AntisenseRna) {
AntisenseRna asAntisenseRna = ((AntisenseRna) modelElement);
......@@ -126,7 +127,9 @@ public class CellDesignerElementCollection {
}
String complexId = "";
String homodimer = "";
if (modelElement instanceof Species) {
homodimer = ((Species) modelElement).getHomodimer() + "";
if (((Species) modelElement).getComplex() != null) {
if (useComplex) {
if (!isCyclicNesting(((Species) modelElement).getComplex())) {
......@@ -153,10 +156,11 @@ public class CellDesignerElementCollection {
}
// identifier that distinguish elements in sbml depends only on type,
// name, compartment, modifications, state, complex where it's located,
// name, compartment, modifications, homodimer, state, complex where it's
// located,
// children of the complex
String sbmlId = compartmenName + "\n" + modelElement.getName() + "\n" + modelElement.getStringType() + "\n" + modifications + "\n" + complexId + "\n"
+ childrenId;
+ homodimer + "\n" + childrenId;
return sbmlId;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment