Transport

transportReactionBool(model, originCompartment, destinationCompartment, unidirectionalBool)[source]

Return a boolean vector indicating which reactions transport between compartments.

USAGE:

[transportRxnBool] = transportReactionBool (model, originCompartment, destinationCompartment, unidirectionalBool)

INPUT:

model – COBRA model structure with fields:

  • .S - m x n stoichiometric matrix

  • .mets - m x 1 metabolite abbreviations (with compartments)

  • .lb - n x 1 lower flux bounds

  • .ub - n x 1 upper flux bounds

OPTIONAL INPUTS:
  • originCompartment – origin compartment (only relevant for unidirectional)

  • destinationCompartment – destination compartment (only relevant for unidirectional)

  • unidirectionalBool – 1 = only return transport reactions between specified compartments in the origin to destination direction

OUTPUT:

transportRxnBool – boolean vector indicating transport reactions