-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversion SBML -> Escher creates mistake in file #51
Comments
This might be due to a mistake in
and
|
Species reference glyphs without an assignd role (i.e. null) will now be set to UNDEFINED role, with a warning. For me, issue draeger-lab#51 does not work out the same: Already going from SBML to Escher causes problems.
For me, the SBML->Escher direction already does not work (
In the file, roles are given as numbers (1,2,3,4) instead of strings like 'product', and the call |
@DEVetter could you please add a link to the file If the roles are given as numbers, we might be able to circumvent this problem using the |
It's in the data folder, for example in line 53 |
This is indeed unusual. It seems when writing the model, the |
As far as i can tell, from JSBML's end, the role attribute has to be set to a legal SpeciesReferenceRole and is then handed through via SpeciesReferenceRole.writeXMLAttributes to the LayoutParser. |
Maybe it would be best to just fix the errors in this example file directly. |
The file GlycolysisLayout_small.sbml.xml seems entirely dysfunctional: It was missing a speciesGlyph and still backconversion (when ignoring validation) does not work, as Escher2Standard will enter into an infinite while-loop. The program shows correct behaviour if --ignore-validation is not set (i.e. it does not even try to convert, because validation fails).
Added a little warning to the ignore-validation-help-entry
I redid the examplefile (with Escher; content is only approximately equal: Previously, the file contained only the malformatted layout for the first two reactions), now it does no longer cause problems.
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
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]
The text was updated successfully, but these errors were encountered: