Source code for padmet_utils.exploration.compare_sbml_padmet

# -*- coding: utf-8 -*-
    compare reactions in sbml and padmet file

    usage: --padmet=FILE --sbml=FILE
        -h --help    Show help.
        --padmet=FILE    path of the padmet file
        --sbml=FILE    path of the sbml file
from padmet.classes import PadmetSpec
from padmet.utils.exploration import compare_sbml_padmet
import libsbml
import docopt

[docs]def main(): args = docopt.docopt(__doc__) sbml_file = args["--sbml"] reader = libsbml.SBMLReader() sbml_document = reader.readSBML(sbml_file) for i in range(sbml_document.getNumErrors()): print(sbml_document.getError(i).getMessage()) padmet = PadmetSpec(args["--padmet"]) compare_sbml_padmet.compare_sbml_padmet(sbml_document, padmet)
if __name__ == "__main__": main()