8.1.1.4.1.5. skimpy.io.sbml

[———]

Copyright 2022 Laboratory of Computational Systems Biotechnology (LCSB), Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

8.1.1.4.1.5.1. Module Contents

8.1.1.4.1.5.1.1. Functions

check(value, message)

If 'value' is None, prints an error message constructed using

export_sbml(kmodel, filename, time_unit=TIME, substance_unit=SUBSTANCE, volume_unit=VOLUME)

import_sbml(filename)

get_reversiblity(reaction)

get_unit(parameter_name, substance_unit=SUBSTANCE)

add_units(model, time_unit=TIME, substance_unit=SUBSTANCE, volume_unit=VOLUME)

8.1.1.4.1.5.1.2. Attributes

TIME

SUBSTANCE

VOLUME

Check function adapted as recommended from SBML-examples:

skimpy.TIME = hour
skimpy.SUBSTANCE = micromole
skimpy.VOLUME = litre

Check function adapted as recommended from SBML-examples: See: https://synonym.caltech.edu/software/libsbml/5.18.0/docs/formatted/python-api/create_simple_model_8py-example.html

skimpy.check(value, message)

If ‘value’ is None, prints an error message constructed using ‘message’ and then exits with status code 1. If ‘value’ is an integer, it assumes it is a libSBML return status code. If the code value is LIBSBML_OPERATION_SUCCESS, returns without further action; if it is not, prints an error message constructed using ‘message’ along with text from libSBML explaining the meaning of the code, and exits with status code 1.

skimpy.export_sbml(kmodel, filename, time_unit=TIME, substance_unit=SUBSTANCE, volume_unit=VOLUME)
skimpy.import_sbml(filename)
skimpy.get_reversiblity(reaction)
skimpy.get_unit(parameter_name, substance_unit=SUBSTANCE)
skimpy.add_units(model, time_unit=TIME, substance_unit=SUBSTANCE, volume_unit=VOLUME)