get_stoichiometry_onespecies: Get the stoichiometry of a specific species in a reaction.

View source: R/parser.R

get_stoichiometry_onespeciesR Documentation

Get the stoichiometry of a specific species in a reaction.

Description

This function uses get_onespecies_count() in the left and right part of a reaction to get the stoichiometry of a species in a reaction.

Usage

get_stoichiometry_onespecies(one_species, reaction)

Value

A list with left_sto being the stoichiometry of a species in the left side of a reaction, and right_sto being the same but for the right side of the reaction.

Examples

# It should return list(left_sto = 1, right_sto = 2)
DNAr:::get_stoichiometry_onespecies('A', 'A + B -> 2A')
# It should return list(left_sto = 0, right_sto = 1)
DNAr:::get_stoichiometry_onespecies('A', 'B -> A + B')

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