nuskell.crnutils

exception nuskell.crnutils.CRNerror[source]
nuskell.crnutils.combine_reversible_rxns(crn)[source]

Condense two irreversible reactions into the corresponding reversible reactions.

nuskell.crnutils.genCRN(crn, reversible=True, rates=True, interpretation=None)[source]

Pretty printing of CRNs.

Parameters:
  • crn (list of reactiontuples) – A CRN in list of list format.

  • reversible (bool, optional) – True to combine reversible reactions into one line. False to split reversible reactions into irreversible reactions.

  • rates (bool, optional) –

Note

Order of reactants/products may differ from the order in the crn argument.

nuskell.crnutils.interpret(l, inter)[source]

Replace species with their interpretation.

nuskell.crnutils.split_reversible_rxns(crn)[source]

Replace every reversible reaction with the two corresponding irreversible reactions.