Data Classes

class dataclasses.ModelData

This class contains a dictionary for each type of SBML model component.

Each dictionary uses the Id of each model component (a str) as a key, and each value is of the appropriate class for that component.

assignmentRules

Each value is an instance of AssignmentRuleData

Type:dict
compartments

Each value is an instance of CompartmentData

Type:dict
functions

Each value is an instance of FunctionData

Type:dict
initialAssignments

Each value is an instance of InitialAssignmentData

Type:dict
parameters

Each value is an instance of ParameterData

Type:dict
rateRules

Each value is an instance of RateRuleData

Type:dict
reactions

Each value is an instance of ReactionData

Type:dict
species

Each value is an instance of SpeciesData

Type:dict
DumpToJSON(filePath)
LoadFromJSON(filePath)

These methods are used for creating a JSON file and for creating an instance of ModelData from a JSON file, respectively. Note that LoadFromJSON is a class method that creates a new instance of ModelData.

class dataclasses.ParameterData

This class holds all of the necessary data from an SBML model for a parameter.

Id
Type:str
isConstant
Type:str
name
Type:str
value
Type:str
class dataclasses.RateRuleData

This class holds all of the necessary data from an SBML model for a rate rule.

Id
Type:str
math
Type:str
name
Type:str
variable
Type:str
class dataclasses.AssignmentRuleData

This class holds all of the necessary data from an SBML model for an assignement rule.

Id
Type:str
math
Type:str
name
Type:str
variable
Type:str
class dataclasses.CompartmentData

This class holds all of the necessary data from an SBML model for a compartment.

dimensionality
Type:str
Id
Type:str
isConstant
Type:str
name
Type:str
size
Type:str
class dataclasses.SpeciesData

This class holds all of the necessary data from an SBML model for a species.

compartment
Type:str
Id
Type:str
isBoudarySpecies
Type:str
isConstant
Type:str
hasOnlySubstanceUnits
Type:str
name
Type:str
value
Type:str
valueType
Type:str
class dataclasses.ReactionData

This class holds all of the necessary data from an SBML model for a reaction.

Id
Type:str
name
Type:str
rateLaw
Type:str
reactants
Type:str
reactionIndex
Type:str
rxnParameters
Type:str
class dataclasses.FunctionData

This class holds all of the necessary data from an SBML model for a function definition.

arguments
Type:str
Id
Type:str
mathString
Type:str
name
Type:str
class dataclasses.InitialAssignmentData

This class holds all of the necessary data from an SBML model for an initial assignment.

Id
Type:str
math
Type:str
name
Type:str
variable
Type:str