Main Content

Tag

Specify label forSimBiologyobject

Description

TheTagproperty specifies a label associated with a SimBiology®object. Use this property to group objects and then usesbioselectto retrieve. For example, use theTagproperty in reaction objects to group synthesis or degradation reactions. You can then retrieve all synthesis reactions usingsbioselect. Similarly, for species objects you can enter and store classification information, for example, membrane protein, transcription factor, enzyme classifications, or whether a species is an independent variable. You can also enter the full form of the name of the species.

Characteristics

Applies to Objects: abstract kinetic law, kinetic law, model, observable, parameter, reaction, RepeatDose, rule, ScheduleDose, species
Data type Character vector
Data values Any character vector
Access Read/write

Examples

  1. Create a model object.

    modelObj = sbiomodel ('my_model');
  2. Add a reaction object and set theTagproperty to'Synthesis Reaction'.

    reactionObj = addreaction (modelObj,'a + b -> c + d'); set (reactionObj,'Tag','Synthesis Reaction')
  3. Verify theTagassignment.

    get (reactionObj,'Tag');

    MATLAB®returns:

    ans = 'Synthesis Reaction'