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
    • .mets

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