get_stoichiometry_all: Get the stoichiometry of a reaction

View source: R/parser.R

get_stoichiometry_allR Documentation

Get the stoichiometry of a reaction

Description

Use this function to get the stoichiometry of the left and right part of a reaction.

Usage

get_stoichiometry_all(reaction)

Value

a list with left_sto and right_sto being the stoichiometry of the left and right part respectively.

Examples

# Returns list(left_sto = 2, right_sto = 1)
DNAr:::get_stoichiometry_all('A + B -> C')
# Returns list(left_sto = 1, right_sto = 2)
DNAr:::get_stoichiometry_all('A -> 2B')

DanielKneipp/DNAr documentation built on Jan. 7, 2023, 12:42 p.m.