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

Merge branch...

Merge branch '646-start-and-end-of-curvesegment-in-listofspeciesreferenceglyphs-in-sbml-are-wrong' into 'master'

Resolve "start and end of curveSegment in listOfSpeciesReferenceGlyphs in SBML are wrong"

Closes #646

See merge request !592
parents c2669340 c9ccd45a
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!592Resolve "start and end of curveSegment in listOfSpeciesReferenceGlyphs in SBML are wrong"
Pipeline #8432 passed
......@@ -284,7 +284,7 @@ public class SbmlReactionExporter extends SbmlBioEntityExporter<Reaction, org.sb
private SpeciesReferenceGlyph createNodeGlyph(ReactionGlyph reactionGlyph, ReactionNode node) {
SpeciesReferenceGlyph reactantGlyph = reactionGlyph.createSpeciesReferenceGlyph("node_" + getNextId());
reactantGlyph.setSpeciesGlyph(speciesExporter.getSbmlGlyphByElementId(node.getElement().getElementId()).getId());
reactantGlyph.setCurve(createCurve(node, false));
reactantGlyph.setCurve(createCurve(node, node instanceof Reactant));
reactantGlyph.setSpeciesReference(speciesReferenceByReactionNode.get(node));
return reactantGlyph;
}
......
......@@ -157,6 +157,8 @@ public class SbmlReactionParser extends SbmlBioEntityParser {
+ " in reaction " + reactionWithLayout.getElementId());
}
if (minervaNode instanceof Reactant) {
//in SBML line goes from reaction to reactant
line = line.reverse();
if (reactionWithLayout.isReversible()) {
line.getBeginAtd().setArrowType(ArrowType.FULL);
}
......
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