Open buggsley opened 7 years ago
Hi Chris,
Yes. There is the method
public static org.sbml.libsbml.SBMLDocument convertSBMLDocument(SBMLDocument doc)
in LibSBMLUtils and also the method
public Model convertModel(org.sbml.libsbml.Model originalModel)
in LibSBMLReader.
Both classes can be found in the libSBMLio module. However, I am unable to complement the functionality with support for packages. If this is needed, I would be more than happy if somebody would contribute it.
The LibSBMLReader stores links from each JSBML object to its corresponding libSBML element. These links can recursively be deleted afterwards if not required. In this case also the LibSBMLChangeListener should be removed in order to avoid null pointer exceptions when the links are removed.
Cheers Andreas
For some operations, we still need libsbml. Should convert them more = seemlessly without go to/from files, if possible.
Begin forwarded message: