booldog.io.tabularqual
Load TabularQual files.
Spec: https://github.com/sys-bio/TabularQual/blob/main/doc/TabularQual_specification_v0.1.2.docx
Uses the tabularqual package (optional sbml extra) to convert
TabularQual spreadsheet files to SBML-qual, then loads them using the
SBML-qual reader (booldog.io.sbml.read_sbmlqual()).
Attributes
Classes
Reader for TabularQual files, via conversion to SBML-qual. |
Functions
|
Parse a TabularQual file into the data needed to construct a |
Module Contents
- booldog.io.tabularqual._TABULARQUAL_AVAILABLE = True
- booldog.io.tabularqual.logger
- class booldog.io.tabularqual.TabularQualReader(model_path)
Reader for TabularQual files, via conversion to SBML-qual.
Requires the optional
tabularqualpackage to be installed (part of thesbmlextra).- Parameters:
model_path (str) – Path to the TabularQual spreadsheet file.
- model_path
Path to the TabularQual spreadsheet file, as given at construction.
- Type:
str
- read()
Convert the TabularQual file to SBML-qual (in a temporary file) and parse it with
booldog.io.sbml.read_sbmlqual().- Returns:
data – Dictionary with keys
"nodes","modelinfo"and"primes"as returned bybooldog.io.sbml.read_sbmlqual(). Suitable forBoolDogModel(**data).- Return type:
dict
- booldog.io.tabularqual.read_tabularqual(model_path)
Parse a TabularQual file into the data needed to construct a
BoolDogModel.- Parameters:
model_path (str) – Path to the TabularQual spreadsheet file.
- Returns:
data – Dictionary with keys
"nodes","modelinfo"and"primes", as returned byTabularQualReader.read(). Suitable forBoolDogModel(**data).- Return type:
dict
- Raises:
ImportError – If the optional
tabularqualpackage is not installed.