Source code for sbmlutils.examples.tutorial.minimal_model_annotations

"""Annotate an existing model."""
from pathlib import Path

from sbmlutils.cytoscape import visualize_sbml
from sbmlutils.metadata.annotator import annotate_sbml


if __name__ == "__main__":
    from sbmlutils.resources import EXAMPLES_DIR

[docs] doc = annotate_sbml( source=EXAMPLES_DIR / "minimal_model.xml", filepath=EXAMPLES_DIR / "minimal_model_annotations.xml", annotations_path=Path(__file__).parent / "minimal_model_annotations.xlsx", )
visualize_sbml( sbml_path=EXAMPLES_DIR / "minimal_model_annotations.xml", delete_session=True )