draeger-lab / EscherConverter

A standalone program that reads files created with the graphical network editor Escher and converts them to files in community standard formats.
https://draeger-lab.github.io/EscherConverter/
MIT License
15 stars 10 forks source link

Conversion stops at CreateMultiMarkers if neither BoundingBox nor Curve are set #44

Open MariaHei opened 5 years ago

MariaHei commented 5 years ago

When converting the file GlycolysisLayout_small.sbml.xml from data the conversion stops at edu.ucsd.sbrg.escher.converter.SBML2Escher createMultiMarkers --- INFORMATION: creating multi-markers from species reference glyph (SpeciesReferenceGlyph_01). This is probably because in this SpeciesReferenceGlyph BoundingBox is not set and while isSetCurve = true, getCurve = [] .

MariaHei commented 5 years ago

Trying to solve this has lead to many more problems so I leave it this way for now. For anyone in the future working on this: the problem is in edu.ucsd.sbrg.escher.converter.SBML2Escher.createMultiMarkers. The number of curve segments is only 1 sometimes which leads to a for-loop from i = 0 with i < 0.