cobra.core.species Module Contents

class cobra.core.species.Species(id=None, name=None)[source]

Species is a class for holding information regarding a chemical Species

  • id (string) – An identifier for the chemical species
  • name (string) – A human readable name.
__init__(id=None, name=None)[source]

Remove the references to container reactions when serializing to avoid problems associated with recursion.


When copying a reaction, it is necessary to deepcopy the components so the list references aren’t carried over.

Additionally, a copy of a reaction is no longer in a cobra.Model.

This should be fixed with self.__deepcopy__ if possible