SBML.org — the global portal for all things SBML

libSBML Perl Example Programs

The libSBML 5.18.0 distribution comes with the following selection of complete example programs in the top-level file directory named examples/perl.

Simple programs

  • echoSBML.pl: Echos (and in the process, pretty prints) an SBML model.
  • readSBML.pl: A simple command-line program that reads an SBML file and prints some statistics about it.
  • printSBML.pl: Prints information about the top-level model in the given SBML file.
  • printSupported.pl: Prints the supported SBML Levels and Versions for this copy of libSBML.

More advanced programs

  • addCVTerms.pl: Adds controlled vocabulary terms to a species in a model.
  • convertSBML.pl: Example demonstrating how to convert SBML documents between SBML Levels.
  • createExampleSBML.pl: Lengthy example of creating SBML models presented in the SBML specification.
  • getAllElementsWithNotes.pl: Demonstrates how to use the element filter class to search the model for elements with specific attributes .
  • printMath.pl: Prints the rule, reaction, and event formulas in a given SBML document.
  • printNotes.pl: Prints the notes strings for each element in a given model.
  • printRegisteredPackages.pl: A command-line program that prints the package plug-ins that are registered with this copy of libSBML.
  • printUnits.pl: A command-line program that prints information about the units of measurement used in a given SBML file.
  • renameSId.pl: Program that renames a specific SId and updates all references to it in a given model.
  • rngvalidator.pl: Example of creating a RELAX NG (RNG) validator to be called during validation.
  • setIdFromNames.pl: Program that renames all SIds that also have names specified. The new identifiers will be derived from the name, with all invalid characters removed.
  • setNamesFromIds.pl: Program that changes all objects' "name" attribute values to match their "id" attribute values.
  • stripPackage.pl: Strips the given SBML Level 3 package from the given SBML file.
  • translateL3Math.pl: Translates infix formulas into MathML and vice-versa, using the SBML Level 3 parser instead of the old Level 1 parser.
  • unsetNotes.pl: Unsets the notes for each element in the given SBML file.


Retrieved from "http://sbml.org/Software/libSBML/libSBML_Perl_Example_Programs"

This page was last modified 15:51, 19 April 2014.



Please use our issue tracking system for any questions or suggestions about this website. This page was last modified 15:51, 19 April 2014.