Open jonrkarr opened 3 years ago
SBML can be detected based on whether the file is XML and whether the root namespaces starts with http://www.sbml.org/sbml/
.
You can specify the format using a second argument (ginsim.load("file.xml", "sbml")
)
@aurelien-naldi I guess this issue is for https://github.com/colomoto/biolqm to add XML as SBML format.
This addresses this issue. Documentation is needed to communicate that this option exists and what formats are supported.
It already appears in the user doc of biolqm, but it seems useful to mention it in the sample notebooks as well!
To streamline a bit this use case, it should be easy to use the SBML format by default for xml files, and use the extra argument to pick another parser.
As you say it would be better to guess the right format based on the XML root namespace, but this would imply a new "virtual" format doing only this and which could only dispatch to SBML in the current state. It may be a better option if we handle other xml formats in the future
SBML files often use the extension
.xml
. This extension should be supported in addition to.sbml
. This error is currently unclear due to the lack of error messages.