Class SBMLModel
java.lang.Object
org.episteme.natural.biology.loaders.sbml.SBMLModel
- All Implemented Interfaces:
UniversalDataModel
Represents an SBML model for systems biology.
Contains compartments, species (metabolites), reactions, and parameters from an SBML file. Provides methods to construct stoichiometry matrices for flux balance analysis.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompartment(SBMLCompartment compartment) voidaddGeneProduct(SBMLGeneProduct geneProduct) voidaddParameter(SBMLParameter parameter) voidaddReaction(SBMLReaction reaction) voidReturns the list of boundary metabolites.getId()Returns the list of internal metabolites (non-boundary species).intgetLevel()Returns species IDs in the order used by the stoichiometry matrix.Returns a map of metadata for this model (e.g., creation date, source).Returns a unique identifier for the type of data model.getName()getNotes()Returns the primary physical values associated with this model.intReturns reaction IDs in the order used by the stoichiometry matrix.getSpeciesById(String id) intConstructs the stoichiometry matrix S where S[i][j] is the stoichiometric coefficient of species i in reaction j.intvoidvoidsetLevel(int level) voidvoidvoidsetVersion(int version) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface UniversalDataModel
validate
-
Constructor Details
-
SBMLModel
public SBMLModel()
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getLevel
public int getLevel() -
setLevel
public void setLevel(int level) -
getVersion
public int getVersion() -
setVersion
public void setVersion(int version) -
getNotes
-
setNotes
-
getCompartments
-
addCompartment
-
getSpecies
-
addSpecies
-
getSpeciesById
-
getSpeciesCount
public int getSpeciesCount() -
getReactions
-
addReaction
-
getReactionById
-
getReactionCount
public int getReactionCount() -
getParameters
-
addParameter
-
getGeneProducts
-
addGeneProduct
-
getInternalMetabolites
Returns the list of internal metabolites (non-boundary species). -
getBoundaryMetabolites
Returns the list of boundary metabolites. -
getStoichiometryMatrix
Constructs the stoichiometry matrix S where S[i][j] is the stoichiometric coefficient of species i in reaction j.Reactants have negative coefficients, products have positive. Only internal (non-boundary) species are included.
- Returns:
- the stoichiometry matrix as a RealDoubleMatrix
-
getMetaboliteOrder
-
getReactionOrder
-
toString
-
getModelType
Description copied from interface:UniversalDataModelReturns a unique identifier for the type of data model. Examples: "SPATIAL_GEOMETRY", "ECONOMIC_PORTFOLIO", "ARCHITECTURAL_PLAN".- Specified by:
getModelTypein interfaceUniversalDataModel
-
getMetadata
Description copied from interface:UniversalDataModelReturns a map of metadata for this model (e.g., creation date, source).- Specified by:
getMetadatain interfaceUniversalDataModel
-
getQuantities
Description copied from interface:UniversalDataModelReturns the primary physical values associated with this model. This allows generic tools to extract and convert measurements.- Specified by:
getQuantitiesin interfaceUniversalDataModel
-