get_stoichiometry_onespecies | R Documentation |
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.
get_stoichiometry_onespecies(one_species, reaction)
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.
# 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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.