sbmlimport
Import SBML-formatted file
Description
Examples
Load the lotka model.
m1 = sbmlimport("lotka.xml");Get the adjacency matrix of the model.
[M,Headings] = getadjacencymatrix(m1)
M = 7×7 sparse double matrix (9 nonzeros)
(5,1) 1
(5,2) 1
(6,3) 1
(7,4) 1
(1,5) 1
(2,5) 1
(2,6) 1
(3,6) 1
(3,7) 1
Headings = 7×1 cell
{'x' }
{'y1' }
{'y2' }
{'z' }
{'Reaction1'}
{'Reaction2'}
{'Reaction3'}
Input Arguments
Name of an SBML file, specified as a character vector or string scalar.
Specify a file name or a path and file name. The acceptable file extensions are
.sbml or .xml. You can also specify a
URL.
The function supports SBML Level 3 Version 1 and earlier. For functional characteristics and limitations, see SBML Support.
Data Types: char | string
References
[1] Finney, A., Hucka, M., (2003). Systems Biology Markup Language (SBML) Level 2: Structures and facilities for model definitions.
Version History
Introduced before R2006aSupport for passing in a URL that is not HTTP and
HTTPS has been removed in a future release. Download the file locally
first and then use the file name as an input to sbmlimport
instead.
sbmlimportadds an initial assignment rule when importing SBML models with the following conditions.If an SBML model has a species s initialized to X using
initialAmountand has the attribute settinghasOnlySubstanceUnits = false:SimBiology sets the initial amount of s to X.
If the model does not already have an initial assignment or repeated assignment rule for s, SimBiology adds an initial assignment rule
s = X / V, where V is the compartment volume (capacity). This rule ensures that the initial amount of s is a concentration unit.If the model already has an initial assignment or repeated assignment rule for s, then SimBiology does not use the value X. Instead, SimBiology evaluates the rule and sets the appropriate initial amount.
If an SBML model has a species s initialized to X using
initialConcentrationand has the attribute settinghasOnlySubstanceUnits = true:SimBiology sets the initial amount of s to X.
If the model does not already have an initial assignment or repeated assignment rule for s, SimBiology adds an initial assignment rule
s = X * V, where V is the compartment volume (capacity). This rule ensures that the initial amount of s is an amount unit.If the model already has an initial assignment or repeated assignment rule for s, then SimBiology does not use the value X. Instead, SimBiology evaluates the rule and sets the appropriate initial amount.
If a species s in an SBML model has the attribute setting
hasOnlySubstanceUnits= true without any units defined, SimBiology issues a warning and sets the species amount unit to a default unit (mole) to ensure it is interpreted as an amount, not a concentration. The imported SimBiology model has theDimensionalAnalysisproperty set to false to prevent dimensional analysis errors.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)