@@ -9,12 +9,12 @@ It can be used to define models of entire cells, or models of smaller biochemica
9
9
Excel spreadsheet workbooks and sets of delimited files. It also includes methods that
10
10
analyze or transform models -- e.g., methods that validate, compare, and normalize them.
11
11
12
- ``wc_lang `` depends heavily on the ``obj_model `` package which defines a generic language for declaring
12
+ ``wc_lang `` depends heavily on the ``obj_tables `` package which defines a generic language for declaring
13
13
interrelated Python objects, converting them to and from data records,
14
14
transferring the records to and from files, and validating their values.
15
- ``obj_model `` is essentially an object-relational mapping (ORM) system that stores data in files
15
+ ``obj_tables `` is essentially an object-relational mapping (ORM) system that stores data in files
16
16
instead of databases.
17
- However, users of ``wc_lang `` do not need to use ``obj_model `` directly.
17
+ However, users of ``wc_lang `` do not need to use ``obj_tables `` directly.
18
18
19
19
Semantics of a ``wc_lang `` biochemical Model
20
20
----------------------------------------------
@@ -35,11 +35,11 @@ are not represented.
35
35
36
36
The data in
37
37
a ``wc_lang `` model is organized in a highly-interconnected graph of related Python objects, each of
38
- which is an ``obj_model .core.Model `` instance.
38
+ which is an ``obj_tables .core.Model `` instance.
39
39
For example, a ``Species `` instance contains ``reaction_participants ``,
40
40
which references each ``Reaction `` in which the ``Species `` participates.
41
41
The graph contains many convenience relationships like this, which make it easy to
42
- follow the relationships between ``obj_model .core.Model `` instances anywhere in a ``wc_lang `` model.
42
+ follow the relationships between ``obj_tables .core.Model `` instances anywhere in a ``wc_lang `` model.
43
43
44
44
A ``wc_lang `` model also supports some metadata.
45
45
Named ``Parameter `` entities store arbitrary values, such as input parameters.
@@ -55,15 +55,15 @@ including its data sources and comments about model components.
55
55
``wc_lang `` Classes Used to Define biochemical Models
56
56
------------------------------------------------------
57
57
58
- This subsection enumerates the ``obj_model .core.Model `` classes that store data in ``wc_lang `` models.
58
+ This subsection enumerates the ``obj_tables .core.Model `` classes that store data in ``wc_lang `` models.
59
59
60
60
When using an existing model the attributes of these classes are frequently accessed, although
61
61
their definitions are not typically imported.
62
62
However, they must be imported when they are being instantiated programmatically.
63
63
64
64
Many of these classes implement the methods ``deserialize() `` and ``serialize() ``.
65
65
``deserialize() `` parses an object's string representation -- as would be stored in a text file or spreadsheet
66
- representation of a biochemical model -- into one or more ``obj_model .core.Model `` instances.
66
+ representation of a biochemical model -- into one or more ``obj_tables .core.Model `` instances.
67
67
``serialize() `` performs the reverse, converting a ``wc_lang `` class instance into a string representation.
68
68
Thus, the ``deserialize() `` methods are used when reading models from files and ``serialize() ``
69
69
is used when writing a model to disk.
@@ -359,7 +359,7 @@ and using these models:
359
359
``SpeciesType `` instance with two string attributes and a ``model `` attribute that references an
360
360
existing model. In addition, this
361
361
expression adds the new ``SpeciesType `` to the model's species types, thereby showing
362
- how ``obj_model ``'s underlying functionality automatically creates bi-directional references
362
+ how ``obj_tables ``'s underlying functionality automatically creates bi-directional references
363
363
that make it easy to build and navigate ``wc_lang `` models, and making this assertion hold:
364
364
365
365
.. literalinclude :: ../../intro_to_wc_modeling/wc_modeling/wc_lang_tutorial/core.py
@@ -403,7 +403,7 @@ and using these models:
403
403
This simplifies model construction by avoiding creation of unnecessary identifiers for these components.
404
404
405
405
Similar code can be used to create any part of a model. All ``wc_lang `` objects that are subclassed from
406
- ``wc_lang.BaseModel `` (an alias for ``obj_model .core.Model ``) can be instantiated in the normal fashion,
406
+ ``wc_lang.BaseModel `` (an alias for ``obj_tables .core.Model ``) can be instantiated in the normal fashion,
407
407
as shown for ``Model ``, ``Submodel ``, ``Compartment ``, ``SpeciesType `` and ``Reaction `` above.
408
408
Each subclass of ``wc_lang.BaseModel `` contains a ``Meta `` attribute that is a class which
409
409
stores meta information about the subclass.
@@ -572,7 +572,7 @@ and using these models:
572
572
573
573
574
574
..
575
- # todo: Furthermore, ``obj_model `` automatically creates reverse references for
575
+ # todo: Furthermore, ``obj_tables `` automatically creates reverse references for
576
576
reference attributes
577
577
578
578
..
0 commit comments