Skip to content

Conversion SBML -> Escher creates mistake in file #51

@MariaHei

Description

@MariaHei

Apparently, something goes wrong in the conversion from SBML to Escher.
Converting from SBML to Escher works:
java -jar -Xms8G -Xmx8G -Duser.language=en EscherConverter-1.2.1.jar --input=GlycolysisLayout_small.sbml.xml --format=Escher --output=glycolysis.json --gui=false
But going back doesn't work, so presumably, the converted output of the first command is wrong:
java -jar -Xms8G -Xmx8G -Duser.language=en EscherConverter-1.2.1.jar --input=glycolysis.json --format=SBML --output=glycolysis.sbml --gui=false

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:658)
        at de.zbit.sbml.util.SBMLtools.toSId(SBMLtools.java:255)
        at edu.ucsd.sbrg.escher.converter.Escher2SBML.createSpeciesReferenceGlyphs(Escher2SBML.java:681)
        at edu.ucsd.sbrg.escher.converter.Escher2SBML.convertReaction(Escher2SBML.java:278)
        at edu.ucsd.sbrg.escher.converter.Escher2SBML.convert(Escher2SBML.java:112)
        at edu.ucsd.sbrg.escher.EscherConverter.convert(EscherConverter.java:143)
        at edu.ucsd.sbrg.escher.EscherConverter.convert(EscherConverter.java:195)
        at edu.ucsd.sbrg.escher.EscherConverter.convert(EscherConverter.java:450)
        at edu.ucsd.sbrg.escher.EscherConverter.batchProcess(EscherConverter.java:327)
        at edu.ucsd.sbrg.escher.EscherConverter.commandLineMode(EscherConverter.java:384)
        at de.zbit.Launcher.launchCommandLineMode(Launcher.java:725)
        at de.zbit.Launcher.run(Launcher.java:862)
        at de.zbit.Launcher.<init>(Launcher.java:211)
        at edu.ucsd.sbrg.escher.EscherConverter.<init>(EscherConverter.java:263)
        at edu.ucsd.sbrg.escher.EscherConverter.main(EscherConverter.java:253)

The reason for this error is a mistake in a metabolite, which presumably is caused by the first conversion:
Metabolite [coefficient=NaN, id=, nodeRefId=null]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions